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.79.1 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.79.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.78.1 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.78.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.77.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.76.2 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.76.1 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.76.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.75.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.74.1 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.74.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.73.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.72.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.71.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.70.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.69.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.68.1 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.68.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.67.0 spec/features/get_tagged_pact_versions_spec.rb
pact_broker-2.66.0 spec/features/get_tagged_pact_versions_spec.rb