aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/dependencies_test.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-07-26 12:42:07 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2010-07-26 12:51:52 -0300
commit4ea1753fc2bcbaca0a50073463ef4b020a2e3c5f (patch)
tree230507dc98048cd0d7b132dcbc385698b9236b9e /activesupport/test/dependencies_test.rb
parent514624e53c7b3008e3c492ef01f4d85188cdbbd7 (diff)
downloadrails-4ea1753fc2bcbaca0a50073463ef4b020a2e3c5f.tar.gz
rails-4ea1753fc2bcbaca0a50073463ef4b020a2e3c5f.tar.bz2
rails-4ea1753fc2bcbaca0a50073463ef4b020a2e3c5f.zip
This is for making sure const_missing is triggered without warnings
Diffstat (limited to 'activesupport/test/dependencies_test.rb')
-rw-r--r--activesupport/test/dependencies_test.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/activesupport/test/dependencies_test.rb b/activesupport/test/dependencies_test.rb
index ec5116bff4..f98d823f00 100644
--- a/activesupport/test/dependencies_test.rb
+++ b/activesupport/test/dependencies_test.rb
@@ -220,11 +220,12 @@ class DependenciesTest < Test::Unit::TestCase
$:.push(path)
with_autoloading_fixtures do
- RequiresConstant
+ # The _ = assignments are to prevent warnings
+ _ = RequiresConstant
assert defined?(RequiresConstant)
assert defined?(LoadedConstant)
ActiveSupport::Dependencies.clear
- RequiresConstant
+ _ = RequiresConstant
assert defined?(RequiresConstant)
assert defined?(LoadedConstant)
end
@@ -241,11 +242,12 @@ class DependenciesTest < Test::Unit::TestCase
$:.push(path)
with_autoloading_fixtures do
- LoadsConstant
+ # The _ = assignments are to prevent warnings
+ _ = LoadsConstant
assert defined?(LoadsConstant)
assert defined?(LoadedConstant)
ActiveSupport::Dependencies.clear
- LoadsConstant
+ _ = LoadsConstant
assert defined?(LoadsConstant)
assert defined?(LoadedConstant)
end