Sha256: e10ade997f17ba463b3b2c49155241599c0252c29c7b85b9cfd6ed9ee5553047

Contents?: true

Size: 719 Bytes

Versions: 20

Compression:

Stored size: 719 Bytes

Contents

describe "Get pending provider pacts" do
  subject { get path; last_response }

  let(:last_response_body) { JSON.parse(subject.body, symbolize_names: true) }
  let(:pact_links) { last_response_body[:_links][:'pb:pacts'] }

  context "when the provider exists" do
    before do
      TestDataBuilder.new
        .create_provider("Provider")
        .create_consumer("Consumer")
        .create_consumer_version("0.0.1")
        .create_pact
    end

    let(:path) { "/pacts/provider/Provider/pending" }

    it "returns a 200 HAL JSON response" do
      expect(subject).to be_a_hal_json_success_response
    end

    it "returns a list of links to the pacts" do
      expect(pact_links.size).to eq 1
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
pact_broker-2.38.1 spec/features/get_wip_provider_pacts_spec.rb
pact_broker-2.38.0 spec/features/get_wip_provider_pacts_spec.rb
pact_broker-2.37.0 spec/features/get_wip_provider_pacts_spec.rb
pact_broker-2.36.1 spec/features/get_wip_provider_pacts_spec.rb
pact_broker-2.36.0 spec/features/get_wip_provider_pacts_spec.rb
pact_broker-2.35.0 spec/features/get_wip_provider_pacts_spec.rb
pact_broker-2.34.0 spec/features/get_wip_provider_pacts_spec.rb
pact_broker-2.33.0 spec/features/get_wip_provider_pacts_spec.rb
pact_broker-2.32.0 spec/features/get_wip_provider_pacts_spec.rb
pact_broker-2.31.0 spec/features/get_wip_provider_pacts_spec.rb
pact_broker-2.30.0 spec/features/get_wip_provider_pacts_spec.rb
pact_broker-2.29.0 spec/features/get_wip_provider_pacts_spec.rb
pact_broker-2.27.6 spec/features/get_wip_provider_pacts_spec.rb
pact_broker-2.27.5 spec/features/get_wip_provider_pacts_spec.rb
pact_broker-2.27.4 spec/features/get_wip_provider_pacts_spec.rb
pact_broker-2.27.3 spec/features/get_wip_provider_pacts_spec.rb
pact_broker-2.27.2 spec/features/get_wip_provider_pacts_spec.rb
pact_broker-2.27.0 spec/features/get_wip_provider_pacts_spec.rb
pact_broker-2.26.1 spec/features/get_wip_provider_pacts_spec.rb
pact_broker-2.26.0 spec/features/get_wip_provider_pacts_spec.rb