module Aws::ClientStubs

def stub_responses(operation_name, *stubs)

Raises:
  • (RuntimeError) - Raises a runtime error when called

Returns:
  • (void) -

Parameters:
  • stubs (Mixed) -- One or more responses to return from the named
  • operation_name (Symbol) --
def stub_responses(operation_name, *stubs)
  if config.stub_responses
    apply_stubs(operation_name, stubs.flatten)
  else
    msg = 'stubbing is not enabled; enable stubbing in the constructor '\
          'with `:stub_responses => true`'
    raise msg
  end
end