diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-09-25 20:28:31 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-11-12 21:44:43 +0900 |
commit | 934e43323856431ceba4a6078a87a03140baa7e2 (patch) | |
tree | 8f903782fbcf82acfca21037009737154f759f91 /tests | |
parent | 1172b6e2185e95caf577df8aa213d6740569d274 (diff) | |
download | json-934e43323856431ceba4a6078a87a03140baa7e2.tar.gz |
Extract assert assertion to assert_include and assert_not_include.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/json_common_interface_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/json_common_interface_test.rb b/tests/json_common_interface_test.rb index 6939d4b..faa908e 100644 --- a/tests/json_common_interface_test.rb +++ b/tests/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 |