From fe0414b5473b5332706126d2a017a9bf235c8146 Mon Sep 17 00:00:00 2001 From: tenderlove Date: Fri, 16 Jan 2015 06:39:13 +0000 Subject: * ext/psych/lib/psych/visitors/yaml_tree.rb: only dump hash subclasses. Thanks Joe Eli McIlvain * test/psych/test_hash.rb: test for change git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/psych/test_hash.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'test/psych') diff --git a/test/psych/test_hash.rb b/test/psych/test_hash.rb index 066df6612e..e658984f48 100644 --- a/test/psych/test_hash.rb +++ b/test/psych/test_hash.rb @@ -38,12 +38,6 @@ module Psych assert_cycle t1 end - def test_hash_with_ivars - @hash.instance_variable_set :@foo, 'bar' - dup = Psych.load Psych.dump @hash - assert_equal 'bar', dup.instance_variable_get(:@foo) - end - def test_hash_subclass_with_ivars x = X.new x[:a] = 'b' -- cgit v1.2.3