From ad6774b103e7ec9dede4188067a84ca61c155ba8 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Thu, 15 Jul 2021 13:49:03 +1000 Subject: [PATCH] chore: fix missing pact_version_sha method on PactPublication --- lib/pact_broker/pacts/pact_publication.rb | 4 ++++ spec/features/get_integrations_spec.rb | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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" }