mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fixes test ordering bug (ht: evan)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user