Class: XSpec::UnitOfWork

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



11
12
13
# File 'lib/xspec/data_structures.rb', line 11

def block
  @block
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



11
12
13
# File 'lib/xspec/data_structures.rb', line 11

def name
  @name
end