Sha256: 8883b2b4c66df5b981884245935364de8b1304f9c0edd9e16f3b928b42c91685
Contents?: true
Size: 778 Bytes
Versions: 1
Compression:
Stored size: 778 Bytes
Contents
# frozen_string_literal: true module ProtoPharm module Api # @param path [String] def stub_request(path) ProtoPharm.stub_registry.register_request_stub(ProtoPharm::RequestStub.new(path)) end def stub_grpc_action(service, rpc_action) ProtoPharm.stub_registry.register_request_stub(ProtoPharm::ActionStub.new(service, rpc_action)) end # @param values [Hash] def request_including(values) ProtoPharm::Matchers::RequestIncludingMatcher.new(values) end def disable_net_connect! GrpcStubAdapter::MockStub.disable_net_connect! end def allow_net_connect! GrpcStubAdapter::MockStub.allow_net_connect! end def allow_net_connect? GrpcStubAdapter::MockStub.allow_net_connect? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
proto_pharm-0.7.0 | lib/proto_pharm/api.rb |