Skip to content

Commit

Permalink
test: update matrix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Sep 1, 2023
1 parent 8dc8fd8 commit 7c36ebf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spec/lib/pact_broker/matrix/repository_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ def shorten_rows rows
end
end

describe "when deploying a provider and the version of the consumer is not specified and multiple consumer versions have been verified by this provider version" do
describe "when the consumer is not specified and multiple consumer versions have been verified by this provider version and no target is specified" do
before do
td.create_pact_with_hierarchy("Foo", "1", "Bar")
.create_verification(provider_version: "5")
Expand All @@ -852,8 +852,9 @@ def shorten_rows rows
[ UnresolvedSelector.new(pacticipant_name: "Bar", pacticipant_version_number: "5") ]
end

it "returns only the latest consumer version row", pending: "Can't work out what this should do" do
expect(subject.rows.size).to eq 1
it "returns a row for each consumer version" do
expect(subject.rows.size).to eq 2
expect(subject.rows.last.consumer_version_number).to eq "1"
expect(subject.rows.first.consumer_version_number).to eq "2"
end
end
Expand Down

0 comments on commit 7c36ebf

Please sign in to comment.