diff --git a/spec/lib/pact_broker/api/decorators/verification_summary_decorator_spec.rb b/spec/lib/pact_broker/api/decorators/verification_summary_decorator_spec.rb index b05b3f81e..60dce5d9e 100644 --- a/spec/lib/pact_broker/api/decorators/verification_summary_decorator_spec.rb +++ b/spec/lib/pact_broker/api/decorators/verification_summary_decorator_spec.rb @@ -20,12 +20,14 @@ module Decorators pact_version_sha: '1234', latest_pact_publication: pact, test_results: nil, - execution_date: DateTime.now) + execution_date: DateTime.now, + provider_version_tags: provider_version_tags) end let(:pact_version) do instance_double("PactBroker::Pacts::PactVersion", name: 'Name') end + let(:provider_version_tags) { [instance_double(PactBroker::Tags::TagWithLatestFlag, name: 'prod', latest?: true)] } let(:pact) { instance_double("PactBroker::Domain::Pact", name: "Some pact", consumer_name: "Foo", provider_name: "Bar", consumer_version_number: "1.2.3") } let(:options) { {base_url: 'http://example.org', consumer_name: "Foo", consumer_version_number: "1.2.3", resource_url: "http://self"} }