From db6e7564558b2e4b1b0af8dd78bb0d676bbc530a Mon Sep 17 00:00:00 2001 From: Yousaf Nabi Date: Tue, 6 Aug 2024 22:31:19 +0100 Subject: [PATCH] chore: add example of fail_if_no_pacts_found from pact broker --- .../animal-service/spec/service_consumers/pact_helper.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/example/animal-service/spec/service_consumers/pact_helper.rb b/example/animal-service/spec/service_consumers/pact_helper.rb index fd4824c6..c066751e 100644 --- a/example/animal-service/spec/service_consumers/pact_helper.rb +++ b/example/animal-service/spec/service_consumers/pact_helper.rb @@ -1,6 +1,6 @@ require 'pact/provider/rspec' -require "./spec/service_consumers/provider_states_for_zoo_app" +require_relative "./provider_states_for_zoo_app" Pact.service_provider 'Animal Service' do @@ -8,4 +8,11 @@ pact_uri '../zoo-app/spec/pacts/zoo_app-animal_service.json' end + ## For pact contracts from a Pact Broker + + # honours_pacts_from_pact_broker do + # pact_broker_base_url 'http://localhost:9292' + # # fail_if_no_pacts_found false # defaults to true + # end + end