remove warning & support multi-run test for test/psych_test_yaml.rb (#2887)
This commit is contained in:
parent
38ed8cbb5f
commit
59a40feec2
Notes:
git
2020-02-07 19:36:34 +09:00
Merged-By: nurse <naruse@airemix.jp>
@ -1034,6 +1034,7 @@ EOY
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_ruby_struct
|
def test_ruby_struct
|
||||||
|
Struct.send(:remove_const, :MyBookStruct) if Struct.const_defined?(:MyBookStruct)
|
||||||
# Ruby structures
|
# Ruby structures
|
||||||
book_struct = Struct::new( "MyBookStruct", :author, :title, :year, :isbn )
|
book_struct = Struct::new( "MyBookStruct", :author, :title, :year, :isbn )
|
||||||
assert_to_yaml(
|
assert_to_yaml(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user