Skip to content

Commit

Permalink
chore: fix missing pact_version_sha method on PactPublication
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jul 15, 2021
1 parent f44bfae commit ad6774b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions lib/pact_broker/pacts/pact_publication.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions spec/features/get_integrations_spec.rb
Original file line number Diff line number Diff line change
@@ -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" }
Expand Down

0 comments on commit ad6774b

Please sign in to comment.