From cc93f8edf5bbe350a7c809628bde026582bf042f Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Tue, 24 Jul 2018 14:58:48 +1000 Subject: [PATCH] test: update tests to expect default specification version 2 --- spec/lib/pact/consumer/configuration_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/lib/pact/consumer/configuration_spec.rb b/spec/lib/pact/consumer/configuration_spec.rb index a216ba73..4c02bfe1 100644 --- a/spec/lib/pact/consumer/configuration_spec.rb +++ b/spec/lib/pact/consumer/configuration_spec.rb @@ -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 @@ -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