summaryrefslogtreecommitdiff
path: root/test/psych/visitors
diff options
context:
space:
mode:
authorS-H-GAMELINKS <gamelinks007@gmail.com>2020-02-09 09:25:23 +0000
committerKoichi Sasada <ko1@atdot.net>2020-02-13 11:01:15 +0900
commit778c3973103651faa7a50d58bddbb8ea89202ee4 (patch)
tree3b8d97ca8637e6a6fec9dc67425f5e3c79288ba0 /test/psych/visitors
parent572d9b93bbad90455dc54a270c0eacc033dc762f (diff)
Fix remove warning & support multi-run test for test/psych/visitors/test_to_ruby.rb
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2893
Diffstat (limited to 'test/psych/visitors')
-rw-r--r--test/psych/visitors/test_to_ruby.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/psych/visitors/test_to_ruby.rb b/test/psych/visitors/test_to_ruby.rb
index 0ebfe9bab0..e1a0056a61 100644
--- a/test/psych/visitors/test_to_ruby.rb
+++ b/test/psych/visitors/test_to_ruby.rb
@@ -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