1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

remove warning & support multi-run test for test/psych_test_yaml.rb (#2887)

This commit is contained in:
S.H 2020-02-07 19:36:11 +09:00 committed by GitHub
parent 38ed8cbb5f
commit 59a40feec2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2020-02-07 19:36:34 +09:00
Merged-By: nurse <naruse@airemix.jp>

View file

@ -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(