[前][次][番号順一覧][スレッド一覧]

ruby-changes:60029

From: S-H-GAMELINKS <ko1@a...>
Date: Thu, 13 Feb 2020 11:01:31 +0900 (JST)
Subject: [ruby-changes:60029] 778c397310 (master): Fix remove warning & support multi-run test for test/psych/visitors/test_to_ruby.rb

https://git.ruby-lang.org/ruby.git/commit/?id=778c397310

From 778c3973103651faa7a50d58bddbb8ea89202ee4 Mon Sep 17 00:00:00 2001
From: S-H-GAMELINKS <gamelinks007@g...>
Date: Sun, 9 Feb 2020 09:25:23 +0000
Subject: Fix remove warning & support multi-run test for
 test/psych/visitors/test_to_ruby.rb


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 https://github.com/ruby/ruby/blob/trunk/test/psych/visitors/test_to_ruby.rb#L24
       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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]