diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-08 03:08:03 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-08 03:08:03 +0000 |
commit | a48f99ce5c88ea07ba0fae1df970103e8b9af328 (patch) | |
tree | 9669945c83ae459af2eec0c56ba3dc893748e2b9 /test/ruby | |
parent | 0851b4c0fc2ae4e9bd6e7546d13828fa708b6b22 (diff) | |
download | ruby-a48f99ce5c88ea07ba0fae1df970103e8b9af328.tar.gz |
Suppress warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_module.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb index 8c33511101..26fec5e899 100644 --- a/test/ruby/test_module.rb +++ b/test/ruby/test_module.rb @@ -334,9 +334,6 @@ class TestModule < Test::Unit::TestCase a = Module.new Other.const_set :BUG6454, a - - original = Other::BUG6454.inspect - b = a.dup Other.const_set :BUG6454_dup, b @@ -1540,8 +1537,8 @@ class TestModule < Test::Unit::TestCase protected :foo end a = c.new - assert_respond_to a, [:foo, true] - assert_nothing_raised(NoMethodError) {a.send :foo} + assert_respond_to a, [:foo, true], bug8005 + assert_nothing_raised(NoMethodError, bug8005) {a.send :foo} end def test_class_variables @@ -1635,7 +1632,7 @@ class TestModule < Test::Unit::TestCase def test_uninitialized_instance_variable a = AttrTest.new - assert_warning /instance variable @ivar not initialized/ do + assert_warning(/instance variable @ivar not initialized/) do assert_nil(a.ivar) end a.instance_variable_set(:@ivar, 42) |