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

Version Path
pact_broker-2.7.0.beta.2 spec/features/update_pacticipant_spec.rb
pact_broker-2.7.0.beta.1 spec/features/update_pacticipant_spec.rb
pact_broker-2.6.0 spec/features/update_pacticipant_spec.rb
pact_broker-2.5.1 spec/features/update_pacticipant_spec.rb
pact_broker-2.5.0 spec/features/update_pacticipant_spec.rb
pact_broker-2.4.2 spec/features/update_pacticipant_spec.rb
pact_broker-2.4.1 spec/features/update_pacticipant_spec.rb
pact_broker-2.4.0 spec/features/update_pacticipant_spec.rb
pact_broker-2.3.0 spec/features/update_pacticipant_spec.rb
pact_broker-2.2.0 spec/features/update_pacticipant_spec.rb
pact_broker-2.1.1 spec/features/update_pacticipant_spec.rb
pact_broker-2.1.0 spec/features/update_pacticipant_spec.rb
pact_broker-2.0.5 spec/features/update_pacticipant_spec.rb
pact_broker-2.0.4 spec/features/update_pacticipant_spec.rb
pact_broker-2.0.3 spec/features/update_pacticipant_spec.rb
pact_broker-2.0.2 spec/features/update_pacticipant_spec.rb
pact_broker-2.0.1 spec/features/update_pacticipant_spec.rb
pact_broker-2.0.0 spec/features/update_pacticipant_spec.rb
pact_broker-2.0.0.beta.8 spec/features/update_pacticipant_spec.rb
pact_broker-2.0.0.beta.7 spec/features/update_pacticipant_spec.rb