summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-12-19 21:19:16 +0900
committerYusuke Endoh <mame@ruby-lang.org>2020-12-19 21:19:16 +0900
commit4735a5b9d2cbde69c501ee8d5bb570f4fac7e51d (patch)
treea61bb9d9bb3b36d3be2ba09cb9ee2610307e5c99
parent1ba8d63b49318e5682a22502c5f5b70e3298da8f (diff)
test/ruby/test_module.rb: Avoid "warning: method redefined"
-rw-r--r--test/ruby/test_module.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb
index 443ccc3aca..5017d9ce19 100644
--- a/test/ruby/test_module.rb
+++ b/test/ruby/test_module.rb
@@ -1239,8 +1239,8 @@ class TestModule < Test::Unit::TestCase
assert_equal([:e, :f], c.class_eval { attr_reader :e, :f })
assert_equal([:g=], c.class_eval { attr_writer :g })
assert_equal([:h=, :i=], c.class_eval { attr_writer :h, :i })
- assert_equal([:g, :g=], c.class_eval { attr_accessor :g })
- assert_equal([:h, :h=, :i, :i=], c.class_eval { attr_accessor :h, :i })
+ assert_equal([:j, :j=], c.class_eval { attr_accessor :j })
+ assert_equal([:k, :k=, :l, :l=], c.class_eval { attr_accessor :k, :l })
end
def test_alias_method