Exception: Test::Unit::AssertionFailedError
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
StandardError
|
|
Instance Chain:
self,
StandardError
|
|
Inherits: |
StandardError
|
Defined in: | lib/test/unit/assertion-failed-error.rb |
Overview
Thrown by Assertions when an assertion fails.
Class Method Summary
Instance Attribute Summary
- #actual rw
- #expected rw
- #inspected_actual rw
- #inspected_expected rw
- #user_message rw
Constructor Details
.new(message = nil, options = nil) ⇒ AssertionFailedError
# File 'lib/test/unit/assertion-failed-error.rb', line 14
def initialize(=nil, =nil) ||= {} @expected = [:expected] @actual = [:actual] @inspected_expected = [:inspected_expected] @inspected_actual = [:inspected_actual] @user_message = [: ] super( ) end
Instance Attribute Details
#actual (rw)
[ GitHub ]# File 'lib/test/unit/assertion-failed-error.rb', line 12
attr_accessor :expected, :actual, :
#expected (rw)
[ GitHub ]# File 'lib/test/unit/assertion-failed-error.rb', line 12
attr_accessor :expected, :actual, :
#inspected_actual (rw)
[ GitHub ]# File 'lib/test/unit/assertion-failed-error.rb', line 13
attr_accessor :inspected_expected, :inspected_actual
#inspected_expected (rw)
[ GitHub ]# File 'lib/test/unit/assertion-failed-error.rb', line 13
attr_accessor :inspected_expected, :inspected_actual