diff options
author | José Valim <jose.valim@gmail.com> | 2011-05-24 15:40:08 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-05-24 15:40:08 -0700 |
commit | 6f413d87b24a0dc5ec741d1190dc3023cd2fcfdb (patch) | |
tree | 6429a04b626d73cfa5d6779290390cd0040cec71 /actionpack/test/controller/view_paths_test.rb | |
parent | ce37f747cd37a480025fbe69c3b1e44cb6a6e3af (diff) | |
parent | d182b6ee9c99901553e6e948f91102d03bb041b0 (diff) | |
download | rails-6f413d87b24a0dc5ec741d1190dc3023cd2fcfdb.tar.gz rails-6f413d87b24a0dc5ec741d1190dc3023cd2fcfdb.tar.bz2 rails-6f413d87b24a0dc5ec741d1190dc3023cd2fcfdb.zip |
Merge pull request #1281 from joshk/removed_action_pack_deprecations
removed deprecated methods, and related tests, from ActionPack
Diffstat (limited to 'actionpack/test/controller/view_paths_test.rb')
-rw-r--r-- | actionpack/test/controller/view_paths_test.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/actionpack/test/controller/view_paths_test.rb b/actionpack/test/controller/view_paths_test.rb index 3de1849db8..f5ac886c20 100644 --- a/actionpack/test/controller/view_paths_test.rb +++ b/actionpack/test/controller/view_paths_test.rb @@ -32,17 +32,11 @@ class ViewLoadPathsTest < ActionController::TestCase @controller.send :assign_shortcuts, @request, @response @controller.send :initialize_template_class, @response - # Track the last warning. - @old_behavior = ActiveSupport::Deprecation.behavior - @last_message = nil - ActiveSupport::Deprecation.behavior = Proc.new { |message, callback| @last_message = message } - @paths = TestController.view_paths end def teardown TestController.view_paths = @paths - ActiveSupport::Deprecation.behavior = @old_behavior end def expand(array) @@ -179,7 +173,7 @@ class ViewLoadPathsTest < ActionController::TestCase assert_nothing_raised { C.append_view_path 'c/path' } assert_paths C, "c/path" end - + def test_lookup_context_accessor assert_equal ["test"], TestController.new.lookup_context.prefixes end |