class Spectator::Mocks::Call(Args)

Overview

Information about a method call and the arguments passed to it.

Defined in:

spectator/mocks/call.cr

Constructors

Macro Summary

Instance Method Summary

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

match?(stub : Stub) : Bool match?

Constructor Detail

def self.new(method_name : Symbol, arguments : Args) #

Creates the method call.


[View source]
def self.new(method_name : Symbol) #

Creates a method call with no arguments.


[View source]

Macro Detail

macro capture #

Creates a method call containing from the current invocation.


[View source]

Instance Method Detail

def arguments : Args #

Arguments passed to the method.


[View source]
def match?(stub : Stub) : Bool #
Description copied from class Spectator::Mocks::AbstractCall

Dispatch for comparing a concrete call to a concrete stub.


[View source]
def method_name : Symbol #

Name of the method.


[View source]
def to_s(io : IO) : Nil #

Produces the string representation of the method call.


[View source]