aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_module.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_module.rb')
-rw-r--r--test/ruby/test_module.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb
index 55755a61a6..c45b88490a 100644
--- a/test/ruby/test_module.rb
+++ b/test/ruby/test_module.rb
@@ -906,10 +906,10 @@ class TestModule < Test::Unit::TestCase
@foo = :foo
@bar = :bar
end
- assert_warning(/optional boolean argument/) do
+ assert_deprecated_warning(/optional boolean argument/) do
attr :foo, true
end
- assert_warning(/optional boolean argument/) do
+ assert_deprecated_warning(/optional boolean argument/) do
attr :bar, false
end
end