Skip to content

Commit

Permalink
test: make branch spec reliably find the right version
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Sep 9, 2021
1 parent e41c35d commit ece9c17
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ece9c17

Please sign in to comment.