aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-07-23 00:28:09 -0300
committerJosé Valim <jose.valim@gmail.com>2010-07-24 01:19:43 +0200
commit80cf6559ed0f35cc525c9f2f90cf483033f6dad7 (patch)
tree4dd8c3531dbf5684c3874797ef364480690f2c41 /activesupport
parent7a7cbab1f4204093796c8d1d3b74a4170cb302c2 (diff)
downloadrails-80cf6559ed0f35cc525c9f2f90cf483033f6dad7.tar.gz
rails-80cf6559ed0f35cc525c9f2f90cf483033f6dad7.tar.bz2
rails-80cf6559ed0f35cc525c9f2f90cf483033f6dad7.zip
Makes restore previosly saved warnings_on_first_load value and avoid warning
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/dependencies_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/test/dependencies_test.rb b/activesupport/test/dependencies_test.rb
index c7088638c7..4b8c7897b7 100644
--- a/activesupport/test/dependencies_test.rb
+++ b/activesupport/test/dependencies_test.rb
@@ -117,6 +117,7 @@ class DependenciesTest < Test::Unit::TestCase
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