summaryrefslogtreecommitdiff
path: root/test/json
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-09-25 20:28:31 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-09-25 20:28:31 +0900
commit6eeacbbc3603bcd63a53e43a2002ca0872945e9f (patch)
treeb1c64212ce730bed3f5877bd6edc2ebe5936a524 /test/json
parent8705dba194ec953d0daecd317786873bfe488d4a (diff)
Extract assert assertion to assert_include and assert_not_include.
Diffstat (limited to 'test/json')
-rw-r--r--test/json/json_common_interface_test.rb3
1 files changed, 2 insertions, 1 deletions
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
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