From ece9c173194ed01be0c2a0770acdee47d9578f1b Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Fri, 10 Sep 2021 07:05:45 +1000 Subject: [PATCH] test: make branch spec reliably find the right version --- .../pact_broker/pacts/pact_publication_dataset_module_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/pact_broker/pacts/pact_publication_dataset_module_spec.rb b/spec/lib/pact_broker/pacts/pact_publication_dataset_module_spec.rb index 5b20560bc..9d0f11ac2 100644 --- a/spec/lib/pact_broker/pacts/pact_publication_dataset_module_spec.rb +++ b/spec/lib/pact_broker/pacts/pact_publication_dataset_module_spec.rb @@ -61,7 +61,7 @@ module Pacts it "returns the right versions" do expect(subject.find { |pp| pp.consumer_id == foo.id && pp[:branch_name] == "feat/x" }.consumer_version.number).to eq "4" - expect(subject.find { |pp| pp.consumer_id == foo_z.id && pp[:branch_name] == "main" }.consumer_version.number).to eq "6" + expect(subject.find { |pp| pp.consumer_id == foo_z.id && pp.provider_id == not_bar.id && pp[:branch_name] == "main" }.consumer_version.number).to eq "8" end end end