Exception: XSpec::AssertionContext::Simple::AssertionFailed

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/xspec/assertion_contexts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, backtrace) ⇒ AssertionFailed

Returns a new instance of AssertionFailed.



48
49
50
51
# File 'lib/xspec/assertion_contexts.rb', line 48

def initialize(message, backtrace)
  @message   = message
  @backtrace = backtrace
end

Instance Attribute Details

#backtraceObject (readonly)

Returns the value of attribute backtrace.



46
47
48
# File 'lib/xspec/assertion_contexts.rb', line 46

def backtrace
  @backtrace
end

#messageObject (readonly)

Returns the value of attribute message.



46
47
48
# File 'lib/xspec/assertion_contexts.rb', line 46

def message
  @message
end