Sha256: 66252a003a2b53eda163531284c592ee65ea3c013e8fc60c156e70a20f46bed3
Contents?: true
Size: 716 Bytes
Versions: 20
Compression:
Stored size: 716 Bytes
Contents
xdescribe "Publishing a pact" do let(:request_body) { load_fixture('update_pacticipant.json') } let(:path) { "/pacticipants/Some%20Consumer" } let(:response_body_json) { JSON.parse(subject.body) } subject { patch path, request_body, {'CONTENT_TYPE' => 'application/json-patch+json' }; last_response } context "when the pacticipant exists" do it "returns a 200 OK" do expect(subject.status).to be 201 end it "returns a json body with the updated pacticipant" do expect(subject.headers['Content-Type']).to eq "application/json" end end context "when the pacticipant does not exist" do it "returns a 404" do expect(subject.status).to be 404 end end end
Version data entries
20 entries across 20 versions & 1 rubygems