mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix remove warning & support multi-run test for test/psych/visitors/test_to_ruby.rb
This commit is contained in:
parent
572d9b93bb
commit
778c397310
Notes:
git
2020-02-13 11:01:39 +09:00
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ module Psych
|
|||
end
|
||||
|
||||
def test_legacy_struct
|
||||
Struct.send(:remove_const, AWESOME) if Struct.const_defined?(:AWESOME)
|
||||
Struct.send(:remove_const, :AWESOME) if Struct.const_defined?(:AWESOME)
|
||||
foo = Struct.new('AWESOME', :bar)
|
||||
assert_equal foo.new('baz'), Psych.load(<<-eoyml)
|
||||
!ruby/struct:AWESOME
|
||||
|
|
Loading…
Add table
Reference in a new issue