Skip to content

Commit

Permalink
test: update tests to expect default specification version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jul 24, 2018
1 parent 0aa2d2a commit cc93f8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/lib/pact/consumer/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module Pact::Consumer::Configuration

it "registers the app with the AppManager with find_available_port option" do
expect(Pact::MockService::AppManager.instance).to receive(:register_mock_service_for).
with(provider_name, url, pact_specification_version: nil, find_available_port: true).
with(provider_name, url, pact_specification_version: '2', find_available_port: true).
and_return(port_number)
subject
end
Expand All @@ -75,7 +75,7 @@ module Pact::Consumer::Configuration

it "checks and raises an error" do
expect(Pact::MockService::AppManager.instance).to receive(:register_mock_service_for).
with(provider_name, url, pact_specification_version: nil, find_available_port: true).
with(provider_name, url, pact_specification_version: '2', find_available_port: true).
and_return(nil)
expect { subject }.to raise_error(/pact-mock_service.+does not support/)
end
Expand Down

0 comments on commit cc93f8e

Please sign in to comment.