lib/fitting/matchers/response_matcher.rb in fitting-1.0.0 vs lib/fitting/matchers/response_matcher.rb in fitting-1.1.0
- old
+ new
@@ -23,13 +23,13 @@
return "response not documented\n"\
"got: #{@response.real_request_with_status}"
end
unless @response.valid?
- "response not valid json-schema\n"\
- "got: #{@response.got}\n"\
- "diff: \n#{@response.diff}"\
- "expected: \n#{@response.expected}\n"
+ "response does not conform to json-schema\n"\
+ "schemas: \n#{@response.expected}\n\n"\
+ "got: #{@response.got}\n\n"\
+ "errors: \n#{@response.diff}\n"
end
end
end
def match_response