Sha256: 0fbbaf5ff4ce65230489de9d15cd6c6cc86bcc7baa14fe62377abc01996f8176

Contents?: true

Size: 650 Bytes

Versions: 131

Compression:

Stored size: 650 Bytes

Contents

describe "retrieving the latest tagged pact" do

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

  subject { get path; last_response  }
  let(:json_response_body) { JSON.parse(subject.body, symbolize_names: true) }

  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 the latest tagged pact version" do
    expect(json_response_body[:_links][:self][:href]).to end_with("1.2.3")
  end
end

Version data entries

131 entries across 131 versions & 1 rubygems

Version Path
pact_broker-2.89.1 spec/features/get_latest_tagged_pact_spec.rb
pact_broker-2.89.0 spec/features/get_latest_tagged_pact_spec.rb
pact_broker-2.88.0 spec/features/get_latest_tagged_pact_spec.rb
pact_broker-2.87.0 spec/features/get_latest_tagged_pact_spec.rb
pact_broker-2.86.0 spec/features/get_latest_tagged_pact_spec.rb
pact_broker-2.85.1 spec/features/get_latest_tagged_pact_spec.rb
pact_broker-2.85.0 spec/features/get_latest_tagged_pact_spec.rb
pact_broker-2.84.0 spec/features/get_latest_tagged_pact_spec.rb
pact_broker-2.83.0 spec/features/get_latest_tagged_pact_spec.rb
pact_broker-2.82.0 spec/features/get_latest_tagged_pact_spec.rb
pact_broker-2.81.0 spec/features/get_latest_tagged_pact_spec.rb
pact_broker-2.80.0 spec/features/get_latest_tagged_pact_spec.rb
pact_broker-2.79.1 spec/features/get_latest_tagged_pact_spec.rb
pact_broker-2.79.0 spec/features/get_latest_tagged_pact_spec.rb
pact_broker-2.78.1 spec/features/get_latest_tagged_pact_spec.rb
pact_broker-2.78.0 spec/features/get_latest_tagged_pact_spec.rb
pact_broker-2.77.0 spec/features/get_latest_tagged_pact_spec.rb
pact_broker-2.76.2 spec/features/get_latest_tagged_pact_spec.rb
pact_broker-2.76.1 spec/features/get_latest_tagged_pact_spec.rb
pact_broker-2.76.0 spec/features/get_latest_tagged_pact_spec.rb