From 4893a4bf7a8205dbcfbcb0e3cb24f0a867ad003a Mon Sep 17 00:00:00 2001 From: "S.H" Date: Fri, 7 Feb 2020 19:35:52 +0900 Subject: remove warning & support multi-run test for test/psych/visitors/test_to_ruby.rb (#2881) --- test/psych/visitors/test_to_ruby.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/psych/visitors/test_to_ruby.rb b/test/psych/visitors/test_to_ruby.rb index f342bf0..0ebfe9b 100644 --- a/test/psych/visitors/test_to_ruby.rb +++ b/test/psych/visitors/test_to_ruby.rb @@ -24,6 +24,7 @@ module Psych end def test_legacy_struct + Struct.send(:remove_const, AWESOME) if Struct.const_defined?(:AWESOME) foo = Struct.new('AWESOME', :bar) assert_equal foo.new('baz'), Psych.load(<<-eoyml) !ruby/struct:AWESOME -- cgit v1.2.3