1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Suppress warnings

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2013-04-08 03:08:03 +00:00
parent 0851b4c0fc
commit a48f99ce5c

View file

@ -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)