From e76a19ece3f455a47e839c924aa0e89d87a06135 Mon Sep 17 00:00:00 2001 From: mame Date: Wed, 28 Apr 2010 13:56:24 +0000 Subject: * test/psych/visitors/test_yaml_tree.rb (test_struct_const): remove Struct::Foo which affects test/ruby/test_struct to warn redefining constant. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/psych/visitors/test_yaml_tree.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/psych/visitors/test_yaml_tree.rb') diff --git a/test/psych/visitors/test_yaml_tree.rb b/test/psych/visitors/test_yaml_tree.rb index 292710b00d..758cfaed72 100644 --- a/test/psych/visitors/test_yaml_tree.rb +++ b/test/psych/visitors/test_yaml_tree.rb @@ -23,6 +23,7 @@ module Psych def test_struct_const foo = Struct.new("Foo", :bar) assert_cycle foo.new('bar') + Struct.instance_eval { remove_const(:Foo) } end A = Struct.new(:foo) -- cgit v1.2.3