class Spec2::Expectation(T)

Included Modules

Defined in:

expectation.cr

Constructors

Instance Method Summary

Instance methods inherited from module Spec2::ExpectationProtocol

callback(ok, failure_message, failure_message_when_negated) callback

Constructor Detail

def self.new(actual : T) #

[View source]

Instance Method Detail

def actual #

[View source]
def callback(ok, failure_message, failure_message_when_negated) #

[View source]
def matcher : Matcher | Nil #

[View source]
def negative : Bool #

[View source]
def negative_callback(ok, message) #

[View source]
def not_to(matcher : Spec2::Matcher | Nil) #

[View source]
def not_to_be #

[View source]
def positive_callback(ok, message) #

[View source]
def to(matcher : Spec2::Matcher | Nil) #

[View source]
def to_be #

[View source]