Skip to content

Commit

Permalink
chore(test): explicit require of ostruct
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Nov 29, 2024
1 parent c534282 commit caa7bfa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions spec/integration_with_pact_broker_config_spec.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'pact/provider_verifier/aggregate_pact_configs'
require 'ostruct'

module Pact
module ProviderVerifier
Expand Down
3 changes: 2 additions & 1 deletion spec/support/message_producer_verifier.ru
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# TODO provider states

require 'json'
require 'ostruct'

class Provider
def a_test_message
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit caa7bfa

Please sign in to comment.