Espec v0.2.0

Modules summary

ESpec
ESpec.Allow
ESpec.AllowTo
ESpec.Assertion
ESpec.Assertions.Be
ESpec.Assertions.BeBetween
ESpec.Assertions.BeCloseTo
ESpec.Assertions.Eq
ESpec.Assertions.Eql
ESpec.Assertions.Match
ESpec.Assertions.RaiseException
ESpec.Assertions.ThrowTerm
ESpec.Before

Defines ‘before’ macro. If before block returns {:ok, key: value}, the {key, value} is added to an ‘exapmle dict’. The dict can be accessed in another before, in let, and in example by __ (__[:key])

ESpec.Configuration
ESpec.Context

Defines macros ‘context’ and ‘describe’

ESpec.Example

Defines macros ‘example’ and ‘it’. These macros defines function with random name which will be called when example runs. Example structs %ESpec.Example are accumulated in @examples attribute

ESpec.Expect

Defines helper functions for modules which use ESpec. These fucntions wraps arguments for ESpec.To module

ESpec.Finally

Defines finally macro. The block is evaluated after the example. __ is available. Define the finally before example!

ESpec.Formatter

Functions to print espec results

ESpec.Let

Defines ‘let’, ‘let!’ and ‘subject’ macrsos. ‘let’ and ‘let!’ macros define named functions with cached return values. The ‘let’ evaluate block in runtime when called first time. The ‘let!’ evaluates as a before block just after all ‘befores’ for example. The ‘subject’ macro is just an alias for let to define subject

ESpec.Mock
ESpec.Runner

Defines functions which runs the examples

ESpec.SomeModule
ESpec.Support
ESpec.To

Defines to and to_not functions which call specific ‘assertion’

Mix.Tasks.Espec

Exceptions summary

ESpec.AssertionError