Sha256: 044c2ef58ece56861f5835046032091a0916a3da90bdb0a40ad281d1bf2cbf3d

Contents?: true

Size: 846 Bytes

Versions: 12

Compression:

Stored size: 846 Bytes

Contents

describe "Get matrix for consumer and provider" do
  before do
    td.create_pact_with_hierarchy("Consumer", "1.0.0", "Provider")
      .create_verification(provider_version: "4.5.6")
  end

  let(:path) { "/matrix/provider/Provider/consumer/Consumer" }
  let(:last_response_body) { JSON.parse(subject.body, symbolize_names: true) }

  subject { get(path) }

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

  it "returns the JSON representation of the matrix" do
    expect(last_response_body[:matrix][0][:consumer]).to be_instance_of(Hash)
    expect(last_response_body[:matrix][0][:provider]).to be_instance_of(Hash)
    expect(last_response_body[:matrix][0][:pact]).to be_instance_of(Hash)
    expect(last_response_body[:matrix][0][:verificationResult]).to be_instance_of(Hash)
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pact_broker-2.89.1 spec/features/get_matrix_for_consumer_and_provider_spec.rb
pact_broker-2.89.0 spec/features/get_matrix_for_consumer_and_provider_spec.rb
pact_broker-2.88.0 spec/features/get_matrix_for_consumer_and_provider_spec.rb
pact_broker-2.87.0 spec/features/get_matrix_for_consumer_and_provider_spec.rb
pact_broker-2.86.0 spec/features/get_matrix_for_consumer_and_provider_spec.rb
pact_broker-2.85.1 spec/features/get_matrix_for_consumer_and_provider_spec.rb
pact_broker-2.85.0 spec/features/get_matrix_for_consumer_and_provider_spec.rb
pact_broker-2.84.0 spec/features/get_matrix_for_consumer_and_provider_spec.rb
pact_broker-2.83.0 spec/features/get_matrix_for_consumer_and_provider_spec.rb
pact_broker-2.82.0 spec/features/get_matrix_for_consumer_and_provider_spec.rb
pact_broker-2.81.0 spec/features/get_matrix_for_consumer_and_provider_spec.rb
pact_broker-2.80.0 spec/features/get_matrix_for_consumer_and_provider_spec.rb