Sha256: 1eef1ef0f8a7bf21764204f7c9b5df947b04dbca5aa342c4f49a0bdad51f39f1

Contents?: true

Size: 658 Bytes

Versions: 119

Compression:

Stored size: 658 Bytes

Contents

describe "retrieving the latest untagged pact" do

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

  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_pact
      .create_consumer_version("4.5.6")
      .create_consumer_version_tag('prod')
      .create_pact
  end

  it "returns the latest untagged pact version" do
    expect(json_response_body[:_links][:self][:href]).to end_with("1.2.3")
  end
end

Version data entries

119 entries across 119 versions & 1 rubygems

Version Path
pact_broker-2.79.1 spec/features/get_latest_untagged_pact_spec.rb
pact_broker-2.79.0 spec/features/get_latest_untagged_pact_spec.rb
pact_broker-2.78.1 spec/features/get_latest_untagged_pact_spec.rb
pact_broker-2.78.0 spec/features/get_latest_untagged_pact_spec.rb
pact_broker-2.77.0 spec/features/get_latest_untagged_pact_spec.rb
pact_broker-2.76.2 spec/features/get_latest_untagged_pact_spec.rb
pact_broker-2.76.1 spec/features/get_latest_untagged_pact_spec.rb
pact_broker-2.76.0 spec/features/get_latest_untagged_pact_spec.rb
pact_broker-2.75.0 spec/features/get_latest_untagged_pact_spec.rb
pact_broker-2.74.1 spec/features/get_latest_untagged_pact_spec.rb
pact_broker-2.74.0 spec/features/get_latest_untagged_pact_spec.rb
pact_broker-2.73.0 spec/features/get_latest_untagged_pact_spec.rb
pact_broker-2.72.0 spec/features/get_latest_untagged_pact_spec.rb
pact_broker-2.71.0 spec/features/get_latest_untagged_pact_spec.rb
pact_broker-2.70.0 spec/features/get_latest_untagged_pact_spec.rb
pact_broker-2.69.0 spec/features/get_latest_untagged_pact_spec.rb
pact_broker-2.68.1 spec/features/get_latest_untagged_pact_spec.rb
pact_broker-2.68.0 spec/features/get_latest_untagged_pact_spec.rb
pact_broker-2.67.0 spec/features/get_latest_untagged_pact_spec.rb
pact_broker-2.66.0 spec/features/get_latest_untagged_pact_spec.rb