Exception: Tst::Failure
- Inherits:
-
StandardError
- Object
- StandardError
- Tst::Failure
- Defined in:
- lib/tst.rb
Overview
An error class that carries data about test failures.
Instance Attribute Summary collapse
-
#actual ⇒ Object
readonly
Returns the value of attribute actual.
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message, expected, actual) ⇒ Failure
constructor
A new instance of Failure.
Constructor Details
#initialize(message, expected, actual) ⇒ Failure
Returns a new instance of Failure.
10 11 12 13 14 15 |
# File 'lib/tst.rb', line 10 def initialize(, expected, actual) @message = @expected = expected @actual = actual super() end |
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual.
8 9 10 |
# File 'lib/tst.rb', line 8 def actual @actual end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
8 9 10 |
# File 'lib/tst.rb', line 8 def expected @expected end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
8 9 10 |
# File 'lib/tst.rb', line 8 def @message end |