summaryrefslogtreecommitdiff
path: root/test/psych/test_array.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/psych/test_array.rb')
-rw-r--r--test/psych/test_array.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/psych/test_array.rb b/test/psych/test_array.rb
index f1e71fb16c..6306a049fc 100644
--- a/test/psych/test_array.rb
+++ b/test/psych/test_array.rb
@@ -16,7 +16,7 @@ module Psych
end
def test_another_subclass_with_attributes
- y = Y.new.tap {|y| y.val = 1}
+ y = Y.new.tap {|o| o.val = 1}
y << "foo" << "bar"
y = Psych.load Psych.dump y
@@ -36,7 +36,7 @@ module Psych
end
def test_subclass_with_attributes
- y = Psych.load Psych.dump Y.new.tap {|y| y.val = 1}
+ y = Psych.load Psych.dump Y.new.tap {|o| o.val = 1}
assert_equal Y, y.class
assert_equal 1, y.val
end