Skip to content

Commit

Permalink
test: fix head rows spec for mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jun 10, 2018
1 parent 3ed2554 commit 32f7efe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/lib/pact_broker/matrix/head_row_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ module Matrix
.create_pact
end

subject { HeadRow.eager(:consumer_version_tags).eager(:latest_verification_for_consumer_version_tag).order(:pact_publication_id).all }
subject { HeadRow.where(verification_id: nil, consumer_version_tag_name: "prod").eager(:consumer_version_tags).eager(:latest_verification_for_consumer_version_tag).order(:pact_publication_id).all }

it "returns the most recent verification for the previous version with the same tag" do
expect(subject.last.verification_id).to be nil # this pact version has not been verified directly
expect(subject.last.latest_verification_for_consumer_version_tag.provider_version.number).to eq "11"
end
end
Expand Down

0 comments on commit 32f7efe

Please sign in to comment.