Sha256: a9c6713a6b3c5488ef66893b6c03c7b70e80d2d87d22b8287fd6af0f69de12e7

Contents?: true

Size: 460 Bytes

Versions: 10

Compression:

Stored size: 460 Bytes

Contents

require 'spec_helper'

describe "/groups/{pacticipant-name}" do

  let(:app) { PactBroker::API }

  describe "GET" do
    before do
      TestDataBuilder.new.create_pact_with_hierarchy("Consumer", "1.2.3", "Provider").and_return(:pact)
      get "/groups/Consumer"
    end

    it "returns a success response" do
      expect(last_response.status).to eq 200
    end

    it "returns a body" do
      expect(last_response.body).to_not be_nil
    end
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pact_broker-2.9.0 spec/integration/endpoints/group.rb
pact_broker-2.9.0.beta.5 spec/integration/endpoints/group.rb
pact_broker-2.8.0.beta.5 spec/integration/endpoints/group.rb
pact_broker-2.8.0.beta.4 spec/integration/endpoints/group.rb
pact_broker-2.7.0.beta.3 spec/integration/endpoints/group.rb
pact_broker-2.7.0.beta.2 spec/integration/endpoints/group.rb
pact_broker-2.7.0.beta.1 spec/integration/endpoints/group.rb
pact_broker-2.6.0 spec/integration/endpoints/group.rb
pact_broker-2.5.1 spec/integration/endpoints/group.rb
pact_broker-2.5.0 spec/integration/endpoints/group.rb