diff --git a/spec/integration_with_pact_broker_config_spec.rb b/spec/integration_with_pact_broker_config_spec.rb index 6fe7f44..1f74522 100644 --- a/spec/integration_with_pact_broker_config_spec.rb +++ b/spec/integration_with_pact_broker_config_spec.rb @@ -1,6 +1,7 @@ require 'pact/provider_verifier/cli/verify' require 'pact/pact_broker' require 'pact/cli/run_pact_verification' +require 'ostruct' describe "pact-provider-verifier with pact broker config" do before do diff --git a/spec/lib/pact/provider_verifier/aggregate_pact_configs_spec.rb b/spec/lib/pact/provider_verifier/aggregate_pact_configs_spec.rb index 3c06c2e..d2354a2 100644 --- a/spec/lib/pact/provider_verifier/aggregate_pact_configs_spec.rb +++ b/spec/lib/pact/provider_verifier/aggregate_pact_configs_spec.rb @@ -1,4 +1,5 @@ require 'pact/provider_verifier/aggregate_pact_configs' +require 'ostruct' module Pact module ProviderVerifier diff --git a/spec/support/message_producer_verifier.ru b/spec/support/message_producer_verifier.ru index 63c16f7..255e287 100644 --- a/spec/support/message_producer_verifier.ru +++ b/spec/support/message_producer_verifier.ru @@ -1,6 +1,7 @@ # TODO provider states require 'json' +require 'ostruct' class Provider def a_test_message @@ -31,7 +32,7 @@ class HttpRequestHandler request_body = JSON.parse(env['rack.input'].read) message_descriptor = OpenStruct.new(request_body) response_body = @message_creator.create(message_descriptor) - [200, {'Content-Type' => 'application/json'}, [response_body.to_json]] + [200, {'content-type' => 'application/json'}, [response_body.to_json]] end end