From 32a5a098e39e377350e4696d2d9f2d8930f1ec41 Mon Sep 17 00:00:00 2001 From: zzak Date: Thu, 21 May 2015 06:40:27 +0000 Subject: * vm_method.c: Remove private attribute warning [Bug #10967] Patch by @spastorino [Fixes GH-849] https://github.com/ruby/ruby/pull/849 * test/ruby/test_module.rb: Update test for changes git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_module.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/ruby/test_module.rb') diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb index f1ca0b7cc1..1171e3bc84 100644 --- a/test/ruby/test_module.rb +++ b/test/ruby/test_module.rb @@ -836,7 +836,7 @@ class TestModule < Test::Unit::TestCase end def test_attr - assert_in_out_err([], <<-INPUT, %w(:ok nil), /warning: private attribute\?$/) + assert_in_out_err([], <<-INPUT, %w(nil)) $VERBOSE = true c = Class.new c.instance_eval do @@ -844,7 +844,6 @@ class TestModule < Test::Unit::TestCase attr_reader :foo end o = c.new - o.foo rescue p(:ok) p(o.instance_eval { foo }) INPUT -- cgit v1.2.3