Sha256: c7ff4c7af3c79287dbbd86ff0a1978a46893e27f67c05aa4f509c67ea493b4a8

Contents?: true

Size: 777 Bytes

Versions: 95

Compression:

Stored size: 777 Bytes

Contents

describe "Get dashboard" do

  let(:path) { "/dashboard" }
  let(:last_response_body) { JSON.parse(subject.body, symbolize_names: true) }

  before do
    TestDataBuilder.new
      .create_consumer("Foo")
      .create_provider("Bar")
      .create_consumer_version("1.2.3")
      .create_consumer_version_tag("prod")
      .create_pact
      .create_verification(provider_version: "4.5.6", tag_names: "dev")
      .create_webhook
      .create_triggered_webhook
      .create_webhook_execution
  end

  subject { get path; last_response }

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

  it "returns a list of items" do
    items = JSON.parse(subject.body)['items']
    expect(items).to be_instance_of(Array)
  end
end

Version data entries

95 entries across 95 versions & 1 rubygems

Version Path
pact_broker-2.23.3 spec/features/get_dashboard_spec.rb
pact_broker-2.23.2 spec/features/get_dashboard_spec.rb
pact_broker-2.23.1 spec/features/get_dashboard_spec.rb
pact_broker-2.23.0 spec/features/get_dashboard_spec.rb
pact_broker-2.22.0 spec/features/get_dashboard_spec.rb
pact_broker-2.21.0 spec/features/get_dashboard_spec.rb
pact_broker-2.20.0 spec/features/get_dashboard_spec.rb
pact_broker-2.19.2 spec/features/get_dashboard_spec.rb
pact_broker-2.19.1 spec/features/get_dashboard_spec.rb
pact_broker-2.19.0 spec/features/get_dashboard_spec.rb
pact_broker-2.18.0 spec/features/get_dashboard_spec.rb
pact_broker-2.17.1 spec/features/get_dashboard_spec.rb
pact_broker-2.17.0 spec/features/get_dashboard_spec.rb
pact_broker-2.16.1 spec/features/get_dashboard_spec.rb
pact_broker-2.16.0 spec/features/get_dashboard_spec.rb