module GrpcMock::Api

Public Instance Methods

allow_net_connect!() click to toggle source
# File lib/grpc_mock/api.rb, line 22
def allow_net_connect!
  GrpcMock.config.allow_net_connect = true
end
disable_net_connect!() click to toggle source
# File lib/grpc_mock/api.rb, line 18
def disable_net_connect!
  GrpcMock.config.allow_net_connect = false
end
request_including(values) click to toggle source

@param values [Hash]

# File lib/grpc_mock/api.rb, line 14
def request_including(values)
  GrpcMock::Matchers::RequestIncludingMatcher.new(values)
end
stub_request(path) click to toggle source

@param path [String]

# File lib/grpc_mock/api.rb, line 9
def stub_request(path)
  GrpcMock.stub_registry.register_request_stub(GrpcMock::RequestStub.new(path))
end