Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

Commit d4a94aa

Browse files
author
Brian Butz
committed
Update match_json_response matcher to show full expected and actual
1 parent ffc6b59 commit d4a94aa

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

spec/support/matchers/match_json_response.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
result = []
4646
if !summary.empty?
47+
result << "Expected:\n#{JSON.pretty_generate(expected)}\nto equal:\n#{JSON.pretty_generate(actual)}\n"
4748
result << "Summary:\n#{summary.map { |s| ' ' + s }.join("\n")}\n"
4849
end
4950
if exception

0 commit comments

Comments
 (0)