Skip to content

Commit

Permalink
feat: update text for matrix version description when no version is i…
Browse files Browse the repository at this point in the history
…n an enviroment
  • Loading branch information
bethesque committed May 17, 2022
1 parent 470c23c commit 3eb5581
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pact_broker/matrix/resolved_selector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ def description
"a version of #{pacticipant_name} with tag #{tag} (no such version exists)"
elsif environment_name && pacticipant_version_number
prefix = one_of_many? ? "one of the versions" : "the version"
"#{prefix} of #{pacticipant_name} currently deployed to #{environment_name} (#{pacticipant_version_number})"
"#{prefix} of #{pacticipant_name} currently deployed or released to #{environment_name} (#{pacticipant_version_number})"
elsif environment_name
"the version of #{pacticipant_name} currently deployed to #{environment_name} (no such version exists)"
"a version of #{pacticipant_name} currently deployed or released to #{environment_name} (no version is currently recorded as deployed/released in this environment)"
elsif pacticipant_version_number && version_does_not_exist?
"version #{pacticipant_version_number} of #{pacticipant_name} (no such version exists)"
elsif pacticipant_version_number
Expand Down

0 comments on commit 3eb5581

Please sign in to comment.