test/ruby/test_refinement.rb: Remove "assigned but unused variable"

This commit is contained in:
Yusuke Endoh 2022-01-05 23:46:27 +09:00
parent 6f7e02bf46
commit f22296d27e

View File

@ -1766,11 +1766,9 @@ class TestRefinement < Test::Unit::TestCase
def test_refined_class
refinements = Module.new {
refine Integer do
int_refinement = self
end
refine String do
str_refinement = self
end
}.refinements
assert_equal(Integer, refinements[0].refined_class)