diff --git a/lib/pact_broker/pacts/pact_publication.rb b/lib/pact_broker/pacts/pact_publication.rb index 5743daa48..5e60fa236 100644 --- a/lib/pact_broker/pacts/pact_publication.rb +++ b/lib/pact_broker/pacts/pact_publication.rb @@ -152,6 +152,10 @@ def to_head_pact HeadPact.new(to_domain, consumer_version.number, values[:tag_name]) end + def pact_version_sha + pact_version.sha + end + private def cached_domain_for_delegation diff --git a/spec/features/get_integrations_spec.rb b/spec/features/get_integrations_spec.rb index c42d75123..b15b99b82 100644 --- a/spec/features/get_integrations_spec.rb +++ b/spec/features/get_integrations_spec.rb @@ -1,7 +1,7 @@ describe "Get integrations dot file" do before do - TestDataBuilder.new - .create_pact_with_hierarchy("Foo", "1", "Bar") + td.create_pact_with_hierarchy("Foo", "1", "Bar") + .create_verification(provider_version: "2") end let(:path) { "/integrations" }