Method: XSpec::Context.execute
- Defined in:
- lib/xspec/data_structures.rb
.execute(unit_of_work) ⇒ Object
Executing a unit of work creates a new instance and hands it off to the call method, which is defined by whichever assertion context is being used. By creating a new instance everytime, no state is preserved between executions.
65 66 67 |
# File 'lib/xspec/data_structures.rb', line 65 def execute(unit_of_work) new.call(unit_of_work) end |