Sha256: a8e35d5422e949f3359107ef205e2cced2ece64e6679db435e3952a4a77feb2a
Contents?: true
Size: 715 Bytes
Versions: 32
Compression:
Stored size: 715 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
32 entries across 32 versions & 1 rubygems