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

ruby-changes:63124

From: Hiroshi <ko1@a...>
Date: Fri, 25 Sep 2020 20:29:03 +0900 (JST)
Subject: [ruby-changes:63124] 6eeacbbc36 (master): Extract assert assertion to assert_include and assert_not_include.

https://git.ruby-lang.org/ruby.git/commit/?id=6eeacbbc36

From 6eeacbbc3603bcd63a53e43a2002ca0872945e9f Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Fri, 25 Sep 2020 20:28:31 +0900
Subject: Extract assert assertion to assert_include and assert_not_include.


diff --git a/test/json/json_common_interface_test.rb b/test/json/json_common_interface_test.rb
index 6939d4b..faa908e 100644
--- a/test/json/json_common_interface_test.rb
+++ b/test/json/json_common_interface_test.rb
@@ -152,7 +152,8 @@ 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 key_classes.include?(Symbol) && (! key_classes.include?(String))
+      assert_include(key_classes, Symbol)
+      assert_not_include(key_classes, String)
     end
   end
 
-- 
cgit v0.10.2


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

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