Skip to content

Commit

Permalink
fix(message): message body content should be 'contents'
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed May 7, 2018
1 parent 9b85e1c commit d3a9a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pact/provider/rspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def describe_message expected_response, interaction_context
include Pact::RSpec::Matchers
extend Pact::Matchers::Messages

let(:expected_content) { expected_response.body[:content].as_json }
let(:expected_content) { expected_response.body[:contents].as_json }
let(:response) { interaction_context.last_response }
let(:differ) { Pact.configuration.body_differ_for_content_type diff_content_type }
let(:diff_formatter) { Pact.configuration.diff_formatter_for_content_type diff_content_type }
Expand Down

0 comments on commit d3a9a4a

Please sign in to comment.