diff options
author | wycats <wycats@gmail.com> | 2010-03-04 12:21:12 -0800 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-03-04 12:21:12 -0800 |
commit | 70916f6a9ce190cae5c545da552bb96f05ee4914 (patch) | |
tree | 3652ab54c1ffedb38c732ca3d33c846fd0b97afa | |
parent | 9795bf0e74612aa542404460220720c14fac1038 (diff) | |
download | rails-70916f6a9ce190cae5c545da552bb96f05ee4914.tar.gz rails-70916f6a9ce190cae5c545da552bb96f05ee4914.tar.bz2 rails-70916f6a9ce190cae5c545da552bb96f05ee4914.zip |
Fixes test ordering bug (ht: evan)
-rw-r--r-- | actionpack/test/controller/view_paths_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/test/controller/view_paths_test.rb b/actionpack/test/controller/view_paths_test.rb index 56821332c5..b8972b04b6 100644 --- a/actionpack/test/controller/view_paths_test.rb +++ b/actionpack/test/controller/view_paths_test.rb @@ -36,9 +36,12 @@ class ViewLoadPathsTest < ActionController::TestCase @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 |