ruby-changes:16326
From: nobu <ko1@a...>
Date: Sat, 12 Jun 2010 17:01:00 +0900 (JST)
Subject: [ruby-changes:16326] Ruby:r28299 (trunk): * test/ruby/test_module.rb (test_attr_inherited_visibility): see .
nobu 2010-06-12 16:56:23 +0900 (Sat, 12 Jun 2010) New Revision: 28299 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28299 Log: * test/ruby/test_module.rb (test_attr_inherited_visibility): see [ruby-core:30638]. Modified files: trunk/test/ruby/test_module.rb Index: test/ruby/test_module.rb =================================================================== --- test/ruby/test_module.rb (revision 28298) +++ test/ruby/test_module.rb (revision 28299) @@ -926,4 +926,17 @@ e = assert_raise(NameError) {eval("Bug3123", TOPLEVEL_BINDING)} assert_not_match(/Object::/, e.message, bug3123) end + + def test_attr_inherited_visibility + c = Class.new do + class << self + private + def attr_accessor(*); super; end + end + attr_accessor :x + end.new + bug3406 = '[ruby-core:30638]' + assert_nothing_raised(bug3406) {c.x = 1} + assert_equal(1, c.x, bug3406) + end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/