mirror of
https://github.com/ruby/ruby.git
synced 2025-09-23 20:44:00 +02:00
test/ruby/test_module.rb: Avoid "warning: method redefined"
This commit is contained in:
parent
1ba8d63b49
commit
4735a5b9d2
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue