Sha256: fc82ac133b99d71e15997f45f2be8b9775f1be466a08f6f0e770d586b78bdb7e

Contents?: true

Size: 712 Bytes

Versions: 73

Compression:

Stored size: 712 Bytes

Contents

describe "retrieving tagged pact versions" do

  let(:path) { "/pacts/provider/Provider/consumer/Consumer/tag/prod"}

  subject { get(path) }
  let(:json_response_body) { JSON.parse(subject.body) }

  before do
    TestDataBuilder.new
      .create_consumer("Consumer")
      .create_provider("Provider")
      .create_consumer_version("1.2.3")
      .create_consumer_version_tag("prod")
      .create_pact
      .create_consumer_version("4.5.6")
      .create_pact
  end

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

  it "returns the list of tagged pact versions" do
    expect(json_response_body['_links']['pb:pact-versions']).to be_a Array
  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
pact_broker-2.65.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.64.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.63.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.62.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.61.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.60.1 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.60.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.59.2 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.59.1 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.59.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.58.3 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.58.2 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.58.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.57.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.56.1 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.56.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.55.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.54.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.53.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.52.2 spec/features/get_tagged_pact_versions_spec.rb