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.36.1 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.36.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.35.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.34.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.33.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.32.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.31.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.30.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.29.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.27.6 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.27.5 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.27.4 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.27.3 spec/features/get_tagged_pact_versions_spec.rb