class Spectator::Mocks::NilMethodStub

Defined in:

spectator/mocks/nil_method_stub.cr

Constructors

Instance Method Summary

Instance methods inherited from class Spectator::Mocks::GenericMethodStub(Nil)

arguments : Arguments arguments, arguments? : Arguments | Nil arguments?, callable?(call : MethodCall) : Bool callable?, to_s(io) to_s

Constructor methods inherited from class Spectator::Mocks::GenericMethodStub(Nil)

new(name, source, args : Arguments | Nil = nil) new

Instance methods inherited from class Spectator::Mocks::MethodStub

call(args : GenericArguments(T, NT), &original : -> RT) forall T, NT, RT call, call!(args : GenericArguments(T, NT), &original : -> RT) : RT forall T, NT, RT call!, callable?(call : MethodCall) : Bool callable?, name : Symbol name, source : Source source, to_s(io) to_s

Constructor methods inherited from class Spectator::Mocks::MethodStub

new(name : Symbol, source : Spectator::Source) new

Instance methods inherited from class Object

should(matcher) should, should_eventually(matcher) should_eventually, should_never(matcher) should_never, should_not(matcher) should_not

Constructor Detail

def self.new(name, source, args : Arguments | Nil = nil) #

[View source]

Instance Method Detail

def and_call_original #

[View source]
def and_raise(exception_type : Exception.class) #

[View source]
def and_raise(exception : Exception) #

[View source]
def and_raise(message : String) #

[View source]
def and_raise(exception_type : Exception.class, *args) forall T #

[View source]
def and_return(value) #

[View source]
def and_return #

[View source]
def and_return(*values) #

[View source]
def call(_args : GenericArguments(T, NT), &_original : -> RT) forall T, NT, RT #

[View source]
def with(*args : *T, **opts : **NT) forall T, NT #

[View source]