diff --git a/test/json/json_common_interface_test.rb b/test/json/json_common_interface_test.rb index 6939d4b690..faa908e0ba 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