Sha256: a87fd50097e8119071cb87566ed87a612650b5dba5c3679579097ee2e8a4bc14

Contents?: true

Size: 601 Bytes

Versions: 12

Compression:

Stored size: 601 Bytes

Contents

RSpec.describe "Get triggered webhooks for pact" do
  before do
    td.create_pact_with_hierarchy
      .create_webhook
      .create_triggered_webhook
      .create_webhook_execution
  end

  let(:td) { TestDataBuilder.new }
  let(:path) { PactBroker::Api::PactBrokerUrls.pact_triggered_webhooks_url(td.pact) }
  let(:json_response_body) { JSON.parse(subject.body) }

  subject { get(path); last_response }

  it { is_expected.to be_a_hal_json_success_response }

  it "contains a list of triggered webhooks" do
    expect(json_response_body["_embedded"]["triggeredWebhooks"].size).to be 1
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

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