Skip to content

Commit e3cd33f

Browse files
authored
Update interaction_replay_spec.rb
1 parent b9916a6 commit e3cd33f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spec/lib/pact/mock_service/request_handlers/interaction_replay_spec.rb

+5-1
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,13 @@ module RequestHandlers
146146

147147
context "when the body contains special charachters" do
148148
let(:actual_body) { '\xEB' }
149+
150+
let(:expected_response_body) do
151+
{"message"=>"No interaction found for GET /path", "interaction_diffs"=>[{"body"=>{"ACTUAL"=>"\\xEB", "EXPECTED"=>{"a"=>"body"}}, "description"=>"a request"}]}
152+
end
153+
149154
it "returns the specified response status" do
150155
expect(response_status).to eq 500
151-
expect(response_body).to include "No interaction found for "
152156
end
153157
end
154158
end

0 commit comments

Comments
 (0)