Browse files

Fixes test ordering bug (ht: evan)

  • Loading branch information...
1 parent 9795bf0 commit 70916f6a9ce190cae5c545da552bb96f05ee4914 @wycats wycats committed Mar 4, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 actionpack/test/controller/view_paths_test.rb
View
3 actionpack/test/controller/view_paths_test.rb
@@ -36,9 +36,12 @@ def setup
@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

0 comments on commit 70916f6

Please sign in to comment.