diff options
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/dependencies_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/test/dependencies_test.rb b/activesupport/test/dependencies_test.rb index b801ce6cf0..ab28c4668e 100644 --- a/activesupport/test/dependencies_test.rb +++ b/activesupport/test/dependencies_test.rb @@ -46,6 +46,7 @@ class DependenciesTest < Test::Unit::TestCase def test_warnings_should_be_enabled_on_first_load old_mechanism, Dependencies.mechanism = Dependencies.mechanism, :load + old_warnings, Dependencies.warnings_on_first_load = Dependencies.warnings_on_first_load, true filename = "#{File.dirname(__FILE__)}/dependencies/check_warnings" $check_warnings_load_count = 0 @@ -78,6 +79,7 @@ class DependenciesTest < Test::Unit::TestCase assert Dependencies.loaded.include?(filename) ensure Dependencies.mechanism = old_mechanism + Dependencies.warnings_on_first_load = old_warnings end def test_mutual_dependencies_dont_infinite_loop |