ruby-changes:66206
From: Yusuke <ko1@a...>
Date: Fri, 14 May 2021 15:45:32 +0900 (JST)
Subject: [ruby-changes:66206] 702961a88b (master): test/ruby/test_refinement.rb: prevent "assigned but unused variable"
https://git.ruby-lang.org/ruby.git/commit/?id=702961a88b From 702961a88bbbfd556139c208d8f4d373b52e530d Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Fri, 14 May 2021 15:44:13 +0900 Subject: test/ruby/test_refinement.rb: prevent "assigned but unused variable" --- test/ruby/test_refinement.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_refinement.rb b/test/ruby/test_refinement.rb index b386c3a..50f0333 100644 --- a/test/ruby/test_refinement.rb +++ b/test/ruby/test_refinement.rb @@ -2490,7 +2490,7 @@ class TestRefinement < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_refinement.rb#L2490 def test_defining_after_cached klass = Class.new - refinement = Module.new { refine(klass) { def foo; end } } + _refinement = Module.new { refine(klass) { def foo; end } } klass.new.foo rescue nil # cache the refinement method entry klass.define_method(:foo) { 42 } assert_equal(42, klass.new.foo) -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/