Sha256: adafd8d98064dd32ca517c510936e5b408665c8760934029c1a9196ef429f296

Contents?: true

Size: 375 Bytes

Versions: 4

Compression:

Stored size: 375 Bytes

Contents

require 'pact_broker/api/pact_broker_urls'

describe "Deleting an environment" do
  before do
    td.create_environment("test", uuid: "1234")
  end

  let(:path) { PactBroker::Api::PactBrokerUrls.environment_url(td.and_return(:environment)) }

  subject { delete(path, nil) }

  it "returns a 204 response" do
    subject
    expect(last_response.status).to be 204
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pact_broker-2.79.1 spec/features/delete_environment_spec.rb
pact_broker-2.79.0 spec/features/delete_environment_spec.rb
pact_broker-2.78.1 spec/features/delete_environment_spec.rb
pact_broker-2.78.0 spec/features/delete_environment_spec.rb