Skip to content

Commit

Permalink
test: add test to show that WIP pact is no longer pending
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Oct 7, 2020
1 parent d357e7a commit 2a11c32
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/features/wip_pacts_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a11c32

Please sign in to comment.