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.79.1 spec/features/get_dashboard_spec.rb
pact_broker-2.79.0 spec/features/get_dashboard_spec.rb
pact_broker-2.78.1 spec/features/get_dashboard_spec.rb
pact_broker-2.78.0 spec/features/get_dashboard_spec.rb
pact_broker-2.77.0 spec/features/get_dashboard_spec.rb
pact_broker-2.76.2 spec/features/get_dashboard_spec.rb
pact_broker-2.76.1 spec/features/get_dashboard_spec.rb
pact_broker-2.76.0 spec/features/get_dashboard_spec.rb
pact_broker-2.75.0 spec/features/get_dashboard_spec.rb
pact_broker-2.74.1 spec/features/get_dashboard_spec.rb
pact_broker-2.74.0 spec/features/get_dashboard_spec.rb
pact_broker-2.73.0 spec/features/get_dashboard_spec.rb
pact_broker-2.72.0 spec/features/get_dashboard_spec.rb
pact_broker-2.71.0 spec/features/get_dashboard_spec.rb
pact_broker-2.70.0 spec/features/get_dashboard_spec.rb
pact_broker-2.69.0 spec/features/get_dashboard_spec.rb
pact_broker-2.68.1 spec/features/get_dashboard_spec.rb
pact_broker-2.68.0 spec/features/get_dashboard_spec.rb
pact_broker-2.67.0 spec/features/get_dashboard_spec.rb
pact_broker-2.66.0 spec/features/get_dashboard_spec.rb