module Spec::Expectations

Defined in:

spec/expectations.cr

Instance Method Summary

Macro Summary

Instance Method Detail

def be #

[View source]
def be(value) #

[View source]
def be_close(expected, delta) #

[View source]
def be_false #

[View source]
def be_falsey #

[View source]
def be_nil #

[View source]
def be_true #

[View source]
def be_truthy #

[View source]
def contain(expected) #

Passes if actual includes expected. Works on collections and String. @param expected - item expected to be contained in actual


[View source]
def eq(value) #

[View source]
def match(value) #

[View source]

Macro Detail

macro be_a(type) #

[View source]
macro expect_raises(klass, message, file = __FILE__, line = __LINE__) #

[View source]
macro expect_raises(klass) #

[View source]
macro expect_raises #

[View source]