Sha256: 5a2596979205b1f14f8dbdb1ccf8d31b2f287ea9c60a0f416536899ffc7bbec0

Contents?: true

Size: 585 Bytes

Versions: 56

Compression:

Stored size: 585 Bytes

Contents

require 'spec/support/test_data_builder'

describe "Delete version" do

  let(:path) { "/pacticipants/Consumer/versions/1.2.3" }
  let(:last_response_body) { JSON.parse(subject.body, symbolize_names: true) }

  subject { delete path; last_response }

  before do
    TestDataBuilder.new
      .create_consumer("Another Consumer")
      .create_consumer("Consumer")
      .create_consumer_version("1.2.3")
      .create_consumer_version_tag("prod")
      .create_consumer_version("1.2.4")
  end


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

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
pact_broker-2.34.0 spec/features/delete_version_spec.rb
pact_broker-2.33.0 spec/features/delete_version_spec.rb
pact_broker-2.32.0 spec/features/delete_version_spec.rb
pact_broker-2.31.0 spec/features/delete_version_spec.rb
pact_broker-2.30.0 spec/features/delete_version_spec.rb
pact_broker-2.29.0 spec/features/delete_version_spec.rb
pact_broker-2.27.6 spec/features/delete_version_spec.rb
pact_broker-2.27.5 spec/features/delete_version_spec.rb
pact_broker-2.27.4 spec/features/delete_version_spec.rb
pact_broker-2.27.3 spec/features/delete_version_spec.rb
pact_broker-2.27.2 spec/features/delete_version_spec.rb
pact_broker-2.27.0 spec/features/delete_version_spec.rb
pact_broker-2.26.1 spec/features/delete_version_spec.rb
pact_broker-2.26.0 spec/features/delete_version_spec.rb
pact_broker-2.25.0 spec/features/delete_version_spec.rb
pact_broker-2.24.0 spec/features/delete_version_spec.rb
pact_broker-2.23.4 spec/features/delete_version_spec.rb
pact_broker-2.23.3 spec/features/delete_version_spec.rb
pact_broker-2.23.2 spec/features/delete_version_spec.rb
pact_broker-2.23.1 spec/features/delete_version_spec.rb