1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_module.rb (test_attr_inherited_visibility): more discussion needed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-07-02 08:40:51 +00:00
parent 707d22f1dd
commit 8f4c474bd3

View file

@ -928,6 +928,8 @@ class TestModule < Test::Unit::TestCase
end end
def test_attr_inherited_visibility def test_attr_inherited_visibility
bug3406 = '[ruby-core:30638]'
skip(bug3406)
c = Class.new do c = Class.new do
class << self class << self
private private
@ -935,7 +937,6 @@ class TestModule < Test::Unit::TestCase
end end
attr_accessor :x attr_accessor :x
end.new end.new
bug3406 = '[ruby-core:30638]'
assert_nothing_raised(bug3406) {c.x = 1} assert_nothing_raised(bug3406) {c.x = 1}
assert_equal(1, c.x, bug3406) assert_equal(1, c.x, bug3406)
end end