diff options
author | S.H <gamelinks007@gmail.com> | 2020-02-07 19:36:11 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-23 14:14:11 +0900 |
commit | ea3ecae85d3776bba3be9c7c64320f2e6f790d30 (patch) | |
tree | 687610fb270c06e8c4df8bfed1d66414a566e1f8 | |
parent | 4893a4bf7a8205dbcfbcb0e3cb24f0a867ad003a (diff) | |
download | psych-ea3ecae85d3776bba3be9c7c64320f2e6f790d30.zip |
remove warning & support multi-run test for test/psych_test_yaml.rb (#2887)
-rw-r--r-- | test/psych/test_yaml.rb | 1 |
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( |