lib/pact_broker/client/webhooks/create.rb in pact_broker-client-1.20.0 vs lib/pact_broker/client/webhooks/create.rb in pact_broker-client-1.21.0

- old
+ new

@@ -39,10 +39,10 @@ webhook_entity = webhook_link.expand(consumer: params.consumer, provider: params.provider).post(request_body) handle_response(webhook_entity) end def create_webhook_with_optional_consumer_and_provider - webhook_entity = index_link.get._link("pb:webhooks").post(request_body_with_optional_consumer_and_provider) + webhook_entity = index_link.get!._link("pb:webhooks").post(request_body_with_optional_consumer_and_provider) if webhook_entity.response.status == 405 raise PactBroker::Client::Error.new(WEBHOOKS_WITH_OPTIONAL_PACTICICPANTS_NOT_SUPPORTED) end