summaryrefslogtreecommitdiff
path: root/test/ruby/test_object.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_object.rb')
-rw-r--r--test/ruby/test_object.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/ruby/test_object.rb b/test/ruby/test_object.rb
index cccd7359e1..41585ba150 100644
--- a/test/ruby/test_object.rb
+++ b/test/ruby/test_object.rb
@@ -359,11 +359,13 @@ class TestObject < Test::Unit::TestCase
require "objspace"
c = Class.new do
- def a = @a
+ attr_reader :a, :b, :c
- def b = @b
-
- def c = @c
+ def initialize
+ @a = nil
+ @b = nil
+ @c = nil
+ end
end
o1 = c.new