ESpec.ExampleRunner
SourceSummary↑
| run(example) | Runs one specific example and returns an
|
| run_example(example) | |
| run_pending(example) | |
| run_skipped(example) |
Functions
Runs one specific example and returns an %ESpec.Example{} struct.
The sequence in the following:
- evaluates ‘befores’ and ‘lets’. ‘befores’ fill the map for
__, ‘lets’ can access__; - runs ‘example block’;
- evaluate ‘finally’s’
The struct has fields
[status: :success, result: result]or[status: failed, error: error]Theresultis the value returned by example block.erroris a%ESpec.AssertionError{}struct.