Exception: XSpec::AssertionContext::Simple::AssertionFailed
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- XSpec::AssertionContext::Simple::AssertionFailed
- Defined in:
- lib/xspec/assertion_contexts.rb
Instance Attribute Summary collapse
-
#backtrace ⇒ Object
readonly
Returns the value of attribute backtrace.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message, backtrace) ⇒ AssertionFailed
constructor
A new instance of AssertionFailed.
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(, backtrace) @message = @backtrace = backtrace end |
Instance Attribute Details
#backtrace ⇒ Object (readonly)
Returns the value of attribute backtrace.
46 47 48 |
# File 'lib/xspec/assertion_contexts.rb', line 46 def backtrace @backtrace end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
46 47 48 |
# File 'lib/xspec/assertion_contexts.rb', line 46 def @message end |