aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/view_paths_test.rb
diff options
context:
space:
mode:
authorwycats <wycats@gmail.com>2010-03-04 12:21:12 -0800
committerwycats <wycats@gmail.com>2010-03-04 12:21:12 -0800
commit70916f6a9ce190cae5c545da552bb96f05ee4914 (patch)
tree3652ab54c1ffedb38c732ca3d33c846fd0b97afa /actionpack/test/controller/view_paths_test.rb
parent9795bf0e74612aa542404460220720c14fac1038 (diff)
downloadrails-70916f6a9ce190cae5c545da552bb96f05ee4914.tar.gz
rails-70916f6a9ce190cae5c545da552bb96f05ee4914.tar.bz2
rails-70916f6a9ce190cae5c545da552bb96f05ee4914.zip
Fixes test ordering bug (ht: evan)
Diffstat (limited to 'actionpack/test/controller/view_paths_test.rb')
-rw-r--r--actionpack/test/controller/view_paths_test.rb3
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