提交 766fb54c 编写于 作者: J Jeremy Kemper

Fix indentation

上级 082c3779
...@@ -1298,7 +1298,6 @@ def setup_request_method_routes_for(method) ...@@ -1298,7 +1298,6 @@ def setup_request_method_routes_for(method)
end end
def test_recognize_array_of_methods def test_recognize_array_of_methods
begin
Object.const_set(:BooksController, Class.new(ActionController::Base)) Object.const_set(:BooksController, Class.new(ActionController::Base))
rs.draw do |r| rs.draw do |r|
r.connect '/match', :controller => 'books', :action => 'get_or_post', :conditions => { :method => [:get, :post] } r.connect '/match', :controller => 'books', :action => 'get_or_post', :conditions => { :method => [:get, :post] }
...@@ -1320,7 +1319,6 @@ def test_recognize_array_of_methods ...@@ -1320,7 +1319,6 @@ def test_recognize_array_of_methods
ensure ensure
Object.send(:remove_const, :BooksController) rescue nil Object.send(:remove_const, :BooksController) rescue nil
end end
end
def test_subpath_recognized def test_subpath_recognized
Object.const_set(:SubpathBooksController, Class.new(ActionController::Base)) Object.const_set(:SubpathBooksController, Class.new(ActionController::Base))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册