ESpec v1.1.2 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 shared
(shared[:key]
).
Summary
Functions
Struct has ‘spec’ module name and random function name
Macros
Allows to add keyword list or map to the shared dictionary