Class: XSpec::Failure

Inherits:
Struct
  • Object
show all
Defined in:
lib/xspec/data_structures.rb

Overview

A test failure will be reported as a ‘Failure`, which includes contextual information about the failure useful for reporting to the user.

Instance Attribute Summary collapse

Instance Attribute Details

#callerObject

Returns the value of attribute caller

Returns:

  • (Object)

    the current value of caller



177
178
179
# File 'lib/xspec/data_structures.rb', line 177

def caller
  @caller
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



177
178
179
# File 'lib/xspec/data_structures.rb', line 177

def message
  @message
end

#unit_of_workObject

Returns the value of attribute unit_of_work

Returns:

  • (Object)

    the current value of unit_of_work



177
178
179
# File 'lib/xspec/data_structures.rb', line 177

def unit_of_work
  @unit_of_work
end