aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/view_paths_test.rb
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2009-05-26 11:47:42 -0700
committerCarl Lerche <carllerche@mac.com>2009-05-26 11:47:42 -0700
commitcd8fb1800df0b65b33b1efd5e5159e1810dfe504 (patch)
tree03282a839ff558a19c09ff9f3b214e3b0c857198 /actionpack/test/controller/view_paths_test.rb
parent2f59066470193c6219dfd958fc5d8096a2ddee68 (diff)
downloadrails-cd8fb1800df0b65b33b1efd5e5159e1810dfe504.tar.gz
rails-cd8fb1800df0b65b33b1efd5e5159e1810dfe504.tar.bz2
rails-cd8fb1800df0b65b33b1efd5e5159e1810dfe504.zip
Remove a no-op from view path tests and removed a Symbol#to_proc
Diffstat (limited to 'actionpack/test/controller/view_paths_test.rb')
-rw-r--r--actionpack/test/controller/view_paths_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/view_paths_test.rb b/actionpack/test/controller/view_paths_test.rb
index 0ac10634b2..c732d1c910 100644
--- a/actionpack/test/controller/view_paths_test.rb
+++ b/actionpack/test/controller/view_paths_test.rb
@@ -22,7 +22,7 @@ class ViewLoadPathsTest < ActionController::TestCase
end
def setup
- TestController.view_paths = nil
+ # TestController.view_paths = nil
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
@@ -48,7 +48,7 @@ class ViewLoadPathsTest < ActionController::TestCase
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