diff --git a/lib/pact_broker/matrix/resolved_selector.rb b/lib/pact_broker/matrix/resolved_selector.rb index 537707afb..207c47e86 100644 --- a/lib/pact_broker/matrix/resolved_selector.rb +++ b/lib/pact_broker/matrix/resolved_selector.rb @@ -211,9 +211,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 or released to #{environment_name} (#{pacticipant_version_number})" + "#{prefix} of #{pacticipant_name} currently in #{environment_name} (#{pacticipant_version_number})" elsif environment_name - "a version of #{pacticipant_name} currently deployed or released to #{environment_name} (no version is currently recorded as deployed/released in this environment)" + "a version of #{pacticipant_name} currently in #{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 diff --git a/spec/lib/pact_broker/matrix/resolved_selector_spec.rb b/spec/lib/pact_broker/matrix/resolved_selector_spec.rb index 517927711..3449f5432 100644 --- a/spec/lib/pact_broker/matrix/resolved_selector_spec.rb +++ b/spec/lib/pact_broker/matrix/resolved_selector_spec.rb @@ -71,7 +71,7 @@ module Matrix context "when it was specified by environment" do let(:environment_name) { "test" } - its(:description) { is_expected.to eq "the version of Foo currently deployed or released to test (123)" } + its(:description) { is_expected.to eq "the version of Foo currently in test (123)" } end context "when it was specified by version number" do @@ -165,7 +165,7 @@ module Matrix context "when it was specified by environment" do let(:environment_name) { "test" } - its(:description) { is_expected.to eq "a version of Foo currently deployed or released to test (no version is currently recorded as deployed/released in this environment)" } + its(:description) { is_expected.to eq "a version of Foo currently in test (no version is currently recorded as deployed/released in this environment)" } its(:version_does_not_exist_description) { is_expected.to eq "No version of Foo is currently recorded as deployed or released in environment test" } end