From 3eb5581d92c94fbd85af7ee0307a18ef6a7d7809 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Tue, 17 May 2022 11:19:39 +1000 Subject: [PATCH] feat: update text for matrix version description when no version is in an enviroment --- lib/pact_broker/matrix/resolved_selector.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pact_broker/matrix/resolved_selector.rb b/lib/pact_broker/matrix/resolved_selector.rb index deb62faa7..404f4fe84 100644 --- a/lib/pact_broker/matrix/resolved_selector.rb +++ b/lib/pact_broker/matrix/resolved_selector.rb @@ -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