Permalink
Browse files

Makes restore previosly saved warnings_on_first_load value and avoid …

…warning

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent 7a7cbab commit 80cf6559ed0f35cc525c9f2f90cf483033f6dad7 @spastorino spastorino committed with josevalim Jul 23, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 activesupport/test/dependencies_test.rb
@@ -117,6 +117,7 @@ def test_warnings_should_be_enabled_on_first_load
assert_equal true, $checked_verbose, 'After first load warnings should be left alone.'
assert ActiveSupport::Dependencies.loaded.include?(expanded)
+ ActiveSupport::Dependencies.warnings_on_first_load = old_warnings
end
end

0 comments on commit 80cf655

Please sign in to comment.