From ea3ecae85d3776bba3be9c7c64320f2e6f790d30 Mon Sep 17 00:00:00 2001 From: "S.H" Date: Fri, 7 Feb 2020 19:36:11 +0900 Subject: remove warning & support multi-run test for test/psych_test_yaml.rb (#2887) --- test/psych/test_yaml.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/psych/test_yaml.rb b/test/psych/test_yaml.rb index 0dfd60f..84cbe26 100644 --- a/test/psych/test_yaml.rb +++ b/test/psych/test_yaml.rb @@ -1034,6 +1034,7 @@ EOY end def test_ruby_struct + Struct.send(:remove_const, :MyBookStruct) if Struct.const_defined?(:MyBookStruct) # Ruby structures book_struct = Struct::new( "MyBookStruct", :author, :title, :year, :isbn ) assert_to_yaml( -- cgit v1.2.3