ESpec v1.8.1 ESpec.ExampleRunner View Source
Contains all the functions need to run a 'spec' example.
Link to this section Summary
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
shared, 'lets' can accessshared; - 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
Link to this section Functions
Link to this function
after_example_actions(assigns, example) View Source
Link to this function
run(example) View Source
Runs one specific example and returns an %ESpec.Example{} struct.
The sequence in the following:
- evaluates 'befores' and 'lets'. 'befores' fill the map for
shared, 'lets' can accessshared; - 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.