summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorS.H <gamelinks007@gmail.com>2020-02-07 19:36:11 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-23 14:14:11 +0900
commitea3ecae85d3776bba3be9c7c64320f2e6f790d30 (patch)
tree687610fb270c06e8c4df8bfed1d66414a566e1f8 /test
parent4893a4bf7a8205dbcfbcb0e3cb24f0a867ad003a (diff)
downloadpsych-ea3ecae85d3776bba3be9c7c64320f2e6f790d30.zip
remove warning & support multi-run test for test/psych_test_yaml.rb (#2887)
Diffstat (limited to 'test')
-rw-r--r--test/psych/test_yaml.rb1
1 files changed, 1 insertions, 0 deletions
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(