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

test/ruby/test_method_cache.rb: suppress "assigned but unused variable"

This commit is contained in:
Yusuke Endoh 2020-12-14 15:56:13 +09:00
parent 53edb27bac
commit ab869d6b9b

View file

@ -27,7 +27,7 @@ class TestMethodCache < Test::Unit::TestCase
undef foo
end
c1 = Class.new(c0)
_c1 = Class.new(c0)
assert_raise(NoMethodError) do
c0.new.foo
@ -45,7 +45,7 @@ class TestMethodCache < Test::Unit::TestCase
c1 = Class.new(c0){ undef foo }
c2 = Class.new(c1)
c3 = Class.new(c2)
c4 = Class.new(c3)
_c4 = Class.new(c3)
assert_raise(NoMethodError) do
c3.new.foo