Skip to content

Commit

Permalink
test: update with pact_source
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Sep 26, 2020
1 parent b8101f1 commit 9883034
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions spec/features/production_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
require 'pact/provider/rspec'
require 'pact/consumer_contract'
require 'features/provider_states/zebras'
require 'pact/provider/pact_source'


module Pact::Provider
Expand Down Expand Up @@ -81,7 +82,10 @@ def call(env)
end
end

honour_consumer_contract pact, pact_uri: Pact::Provider::PactURI.new("http://dummy-uri")
pact_uri = Pact::Provider::PactURI.new("http://dummy-uri")
pact_source = Pact::Provider::PactSource.new(pact_uri)

honour_consumer_contract pact, pact_uri: pact_uri, pact_source: pact_source

end

Expand Down Expand Up @@ -115,8 +119,10 @@ def call(env)
end
end

pact_uri = Pact::Provider::PactURI.new("http://dummy-uri")
pact_source = Pact::Provider::PactSource.new(pact_uri)

honour_consumer_contract consumer_contract, pact_uri: Pact::Provider::PactURI.new("http://dummy-uri")
honour_consumer_contract consumer_contract, pact_uri: pact_uri, pact_source: pact_source
end

context "that is a string" do
Expand Down Expand Up @@ -147,8 +153,10 @@ def call(env)
end
end

pact_uri = Pact::Provider::PactURI.new("http://dummy-uri")
pact_source = Pact::Provider::PactSource.new(pact_uri)

honour_consumer_contract consumer_contract, pact_uri: Pact::Provider::PactURI.new("http://dummy-uri")
honour_consumer_contract consumer_contract, pact_uri: pact_uri, pact_source: pact_source
end

end
Expand Down

0 comments on commit 9883034

Please sign in to comment.