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

ruby-changes:63114

From: Hiroshi <ko1@a...>
Date: Fri, 25 Sep 2020 17:29:06 +0900 (JST)
Subject: [ruby-changes:63114] 81dc37b1b4 (master): assert_true is not provided by test-unit

https://git.ruby-lang.org/ruby.git/commit/?id=81dc37b1b4

From 81dc37b1b41db9957d783b28cb1a4eaa03a5bd5d Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Fri, 25 Sep 2020 15:40:56 +0900
Subject: assert_true is not provided by test-unit


diff --git a/test/json/json_common_interface_test.rb b/test/json/json_common_interface_test.rb
index 4fdc2b1..6939d4b 100644
--- a/test/json/json_common_interface_test.rb
+++ b/test/json/json_common_interface_test.rb
@@ -152,7 +152,7 @@ class JSONCommonInterfaceTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/json/json_common_interface_test.rb#L152
     temp_file_containing(@json) do |filespec|
       parsed_object = JSON.public_send(method_name, filespec, symbolize_names: true)
       key_classes = parsed_object.keys.map(&:class)
-      assert_true key_classes.include?(Symbol) && (! key_classes.include?(String))
+      assert key_classes.include?(Symbol) && (! key_classes.include?(String))
     end
   end
 
-- 
cgit v0.10.2


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

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