diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2020-12-19 21:19:16 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2020-12-19 21:19:16 +0900 |
commit | 4735a5b9d2cbde69c501ee8d5bb570f4fac7e51d (patch) | |
tree | a61bb9d9bb3b36d3be2ba09cb9ee2610307e5c99 /test | |
parent | 1ba8d63b49318e5682a22502c5f5b70e3298da8f (diff) |
test/ruby/test_module.rb: Avoid "warning: method redefined"
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_module.rb | 4 |
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 |