ESpec v1.7.0 ESpec.Before View Source
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 shared
(shared[:key]
).
Link to this section Summary
Functions
Struct has 'spec' module name and random function name
Allows to add keyword list or map to the shared dictionary
Link to this section Functions
Link to this function
%ESpec.Before{} View Source (struct)
Struct has 'spec' module name and random function name.
Link to this macro
before(keyword) View Source (macro)
Allows to add keyword list or map to the shared dictionary