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