Browse files

Remove a no-op from view path tests and removed a Symbol#to_proc

  • Loading branch information...
1 parent 2f59066 commit cd8fb1800df0b65b33b1efd5e5159e1810dfe504 Carl Lerche committed May 26, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/test/controller/view_paths_test.rb
View
4 actionpack/test/controller/view_paths_test.rb
@@ -22,7 +22,7 @@ def hello_world; render(:template => 'test/hello_world'); end
end
def setup
- TestController.view_paths = nil
+ # TestController.view_paths = nil
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
@@ -48,7 +48,7 @@ def expand(array)
def assert_paths(*paths)
controller = paths.first.is_a?(Class) ? paths.shift : @controller
- assert_equal expand(paths), controller.view_paths.map(&:to_s)
+ assert_equal expand(paths), controller.view_paths.map { |p| p.to_s }
end
def test_template_load_path_was_set_correctly

0 comments on commit cd8fb18

Please sign in to comment.