diff --git a/spec/lib/openapi3_parser/validation/error_collection_spec.rb b/spec/lib/openapi3_parser/validation/error_collection_spec.rb index 85b58dd..5eba42a 100644 --- a/spec/lib/openapi3_parser/validation/error_collection_spec.rb +++ b/spec/lib/openapi3_parser/validation/error_collection_spec.rb @@ -88,7 +88,7 @@ def create_error(message, group_class.new(error_d.context.source_location, "Contact", [error_d]), group_class.new(error_e.context.source_location, "Info", [error_e]) ] - expect(instance.group_errors).to contain_exactly(*expected) + expect(instance.group_errors).to match_array(expected) end end