summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorS-H-GAMELINKS <gamelinks007@gmail.com>2020-02-09 09:25:23 +0000
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-23 14:14:53 +0900
commitfe21629c0b816f53172cde01866d137245adbf83 (patch)
treeda84c9f6a215ee86a814cc8d5c9a83173d3b2d6d /test
parentea3ecae85d3776bba3be9c7c64320f2e6f790d30 (diff)
downloadpsych-fe21629c0b816f53172cde01866d137245adbf83.tar.gz
Fix remove warning & support multi-run test for test/psych/visitors/test_to_ruby.rb
Diffstat (limited to 'test')
-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 0ebfe9b..e1a0056 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