module Spec::Methods

Defined in:

spec_assert.cr

Instance Method Summary

Macro Summary

Instance Method Detail

def test(description = "", file = __FILE__, line = __LINE__, &block) #

An alternative way to spell "it" to more naturally describe tests with a name, not an action


[View source]

Macro Detail

macro assert(exp, file = __FILE__, line = __LINE__, bool = true) #

Check that the expression is true, or raise AssertionError otherwise


[View source]