-
-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: show more helpful error message when someone tries to get /all …
…verifications for a pact
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
require 'pact_broker/api/resources/verification' | ||
|
||
module PactBroker | ||
module Api | ||
module Resources | ||
describe Verification do | ||
context "when someone tries to get all the verifications for a pact" do | ||
subject { get("/pacts/provider/Bar/consumer/Foo/pact-version/1/verification-results/all") } | ||
|
||
it "tells them to use the matrix" do | ||
expect(subject.status).to eq 404 | ||
expect(subject.body).to include "Matrix" | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |