diff --git a/lib/pact/provider/rspec.rb b/lib/pact/provider/rspec.rb index 42363ae2..92788a5c 100644 --- a/lib/pact/provider/rspec.rb +++ b/lib/pact/provider/rspec.rb @@ -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 }