Class: XSpec::UnitOfWork
- Inherits:
-
Struct
- Object
- Struct
- XSpec::UnitOfWork
- Defined in:
- lib/xspec/data_structures.rb
Overview
A unit of work, usually created by the ‘it` DSL method, is a labeled, indivisible code block that expresses an assertion about a property of the system under test. They are run by a scheduler.
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block
11 12 13 |
# File 'lib/xspec/data_structures.rb', line 11 def block @block end |
#name ⇒ Object
Returns the value of attribute name
11 12 13 |
# File 'lib/xspec/data_structures.rb', line 11 def name @name end |