From 2a11c32096975dd5740db481cacfe40188ca2dae Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Wed, 7 Oct 2020 13:21:46 +1100 Subject: [PATCH] test: add test to show that WIP pact is no longer pending --- spec/features/wip_pacts_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/features/wip_pacts_spec.rb b/spec/features/wip_pacts_spec.rb index b1b57767c..e9f861854 100644 --- a/spec/features/wip_pacts_spec.rb +++ b/spec/features/wip_pacts_spec.rb @@ -233,6 +233,11 @@ def build_pacts_for_verification_request_body(provider_version_tag, consumer_ver pact_url = wip_pact_url_from(pacts_for_verification_response) pact_response = get_pact(pact_url) + # however feat-x pact is no longer pending because it has a successful verification from master!!! + # Question: do we want this behaviour? Or should pending use the same logic? + expect(wip_pacts_from(pacts_for_verification_response).first['verificationProperties']['wip']).to be true + expect(wip_pacts_from(pacts_for_verification_response).first['verificationProperties']['pending']).to be nil + # verify pact... success! # publish success verification results