Sha256: f59abe9f82e36d3358583414d5fad3af33a38a065f1d1ea06ebe8b83d2dafe8e

Contents?: true

Size: 904 Bytes

Versions: 12

Compression:

Stored size: 904 Bytes

Contents

require 'pact_broker/client/pact_hash'
shared_context "pact broker" do

  let(:pact_hash) { PactBroker::Client::PactHash[consumer: {name: 'Condor'}, provider: {name: 'Pricing Service'}, interactions: []] }
  let(:consumer_contract) { Pact::ConsumerContract.from_hash pact_hash }
  let(:pact_json) { pact_hash.to_json }
  let(:pact_broker_client) { PactBroker::Client::PactBrokerClient.new(client_config) }
  let(:client_config) { { base_url: 'http://localhost:1234' } }
  let(:consumer_version) { '1.3.0' }
  let(:version) { '1.3.0' }
  let(:pact_broker_version) { Pact::Term.new(:matcher => /\d+\.\d+\.\d+/, :generate => '1.0.0') }
  let(:pact_broker_response_headers) { {} }
  let(:default_request_headers) { { 'Content-Type' => 'application/json'} }
  let(:patch_request_headers)   { { 'Content-Type' => 'application/json'} }
  let(:get_request_headers)     { { 'Accept' => 'application/json'} }

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pact_broker-client-1.14.1 spec/support/shared_context.rb
pact_broker-client-1.14.0 spec/support/shared_context.rb
pact_broker-client-1.13.1 spec/support/shared_context.rb
pact_broker-client-1.13.0 spec/support/shared_context.rb
pact_broker-client-1.12.0 spec/support/shared_context.rb
pact_broker-client-1.11.0 spec/support/shared_context.rb
pact_broker-client-1.10.0 spec/support/shared_context.rb
pact_broker-client-1.9.0 spec/support/shared_context.rb
pact_broker-client-1.8.0 spec/support/shared_context.rb
pact_broker-client-1.7.0 spec/support/shared_context.rb
pact_broker-client-1.6.0 spec/support/shared_context.rb
pact_broker-client-1.5.0 spec/support/shared_context.rb