aboutsummaryrefslogtreecommitdiffstats
path: root/test/psych/visitors
diff options
context:
space:
mode:
Diffstat (limited to 'test/psych/visitors')
-rw-r--r--test/psych/visitors/test_yaml_tree.rb1
1 files changed, 1 insertions, 0 deletions
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)