Sha256: 7bb019705b0361c4c4bcca5c516ab25624cf226789b4e50655e8073b8ebbce0b

Contents?: true

Size: 453 Bytes

Versions: 5

Compression:

Stored size: 453 Bytes

Contents

RSpec.shared_context "stubbed services" do

  let(:pact_service) { class_double("PactBroker::Pacts::Service").as_stubbed_const }
  let(:pacticipant_service) { class_double("PactBroker::Pacticipants::Service").as_stubbed_const }

  before do
    allow_any_instance_of(described_class).to receive(:pact_service).and_return(pact_service)
    allow_any_instance_of(described_class).to receive(:pacticipant_service).and_return(pacticipant_service)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pact_broker-2.29.0 spec/support/shared_context.rb
pact_broker-2.27.6 spec/support/shared_context.rb
pact_broker-2.27.5 spec/support/shared_context.rb
pact_broker-2.27.4 spec/support/shared_context.rb
pact_broker-2.27.3 spec/support/shared_context.rb