Exception: Spectre::Assertion::AssertionFailure
- Inherits:
-
ExpectationFailure
- Object
- Exception
- ExpectationFailure
- Spectre::Assertion::AssertionFailure
- Defined in:
- lib/spectre/assertion.rb
Instance Attribute Summary collapse
-
#actual ⇒ Object
readonly
Returns the value of attribute actual.
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
Attributes inherited from ExpectationFailure
Instance Method Summary collapse
-
#initialize(message, expected = nil, actual = nil, expectation = nil) ⇒ AssertionFailure
constructor
A new instance of AssertionFailure.
Constructor Details
#initialize(message, expected = nil, actual = nil, expectation = nil) ⇒ AssertionFailure
Returns a new instance of AssertionFailure.
237 238 239 240 241 |
# File 'lib/spectre/assertion.rb', line 237 def initialize , expected=nil, actual=nil, expectation=nil super , expectation @expected = expected @actual = actual end |
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual.
235 236 237 |
# File 'lib/spectre/assertion.rb', line 235 def actual @actual end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
235 236 237 |
# File 'lib/spectre/assertion.rb', line 235 def expected @expected end |