Module: XSpec::AssertionContext::Bottom
- Defined in:
- lib/xspec/assertion_contexts.rb
Overview
The bottom context executes the unit of work, with no error handling or extra behaviour. By separating this, all other contexts layered on top of this one can just call ‘super`, making them easy to compose.
Instance Method Summary collapse
Instance Method Details
#call(unit_of_work) ⇒ Object
24 25 26 27 |
# File 'lib/xspec/assertion_contexts.rb', line 24 def call(unit_of_work) instance_exec(&unit_of_work.block) [] end |