Skip to content

Commit

Permalink
test: fix verifiable pacts json schema test
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jul 12, 2021
1 parent f1ad8f6 commit 6c992f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ module Contracts
selector = ALL_PROPERTIES.slice(*valid_key_combination)

describe "with #{selector}" do
before do
allow(PactBroker::Deployments::EnvironmentService).to receive(:find_by_name).and_return(double("environment"))
end

it "is valid" do
params = { consumerVersionSelectors: [selector] }
expect(VerifiablePactsJSONQuerySchema.(params)).to be_empty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Contracts
before do
allow(PactBroker::Deployments::EnvironmentService).to receive(:find_by_name).and_return(environment)
end
let(:environment) { double('environment') }
let(:environment) { double("environment") }

let(:params) do
{
Expand Down

0 comments on commit 6c992f8

Please sign in to comment.