Exception: DohTest::Failure
- Inherits:
-
StandardError
- Object
- StandardError
- DohTest::Failure
- Defined in:
- lib/dohtest/failure.rb
Instance Attribute Summary collapse
-
#actual ⇒ Object
readonly
Returns the value of attribute actual.
-
#assert ⇒ Object
readonly
Returns the value of attribute assert.
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
Instance Method Summary collapse
-
#initialize(message, assert, expected, actual) ⇒ Failure
constructor
A new instance of Failure.
Constructor Details
#initialize(message, assert, expected, actual) ⇒ Failure
Returns a new instance of Failure.
6 7 8 9 |
# File 'lib/dohtest/failure.rb', line 6 def initialize(, assert, expected, actual) super( || '') @assert, @expected, @actual = assert, expected, actual end |
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual.
4 5 6 |
# File 'lib/dohtest/failure.rb', line 4 def actual @actual end |
#assert ⇒ Object (readonly)
Returns the value of attribute assert.
4 5 6 |
# File 'lib/dohtest/failure.rb', line 4 def assert @assert end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
4 5 6 |
# File 'lib/dohtest/failure.rb', line 4 def expected @expected end |