From d0157b0a1c05c4fa94bbf228477a5b5256f7308c Mon Sep 17 00:00:00 2001 From: Matt Fellows Date: Tue, 8 May 2018 10:56:26 +1000 Subject: [PATCH] fix(message): message body actual content should be 'contents' --- lib/pact/provider/rspec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pact/provider/rspec.rb b/lib/pact/provider/rspec.rb index 92788a5c..e6ed3c2d 100644 --- a/lib/pact/provider/rspec.rb +++ b/lib/pact/provider/rspec.rb @@ -115,7 +115,7 @@ def describe_message expected_response, interaction_context let(:diff_options) { { with: differ, diff_formatter: diff_formatter } } let(:diff_content_type) { 'application/json' } let(:response_body) { parse_body_from_response(response) } - let(:actual_content) { response_body['content'] } + let(:actual_content) { response_body['contents'] } it "has matching content" do | example | if response.status != 200