1
0
Fork 0
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:
S-H-GAMELINKS 2020-02-09 09:25:23 +00:00 committed by Koichi Sasada
parent 572d9b93bb
commit 778c397310
Notes: git 2020-02-13 11:01:39 +09:00

View file

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