class Test::Unit::AssertionFailedError

Thrown by Test::Unit::Assertions when an assertion fails.

Attributes

actual[RW]
expected[RW]
inspected_actual[RW]
inspected_expected[RW]
user_message[RW]

Public Class Methods

debug_on_failure=(boolean) click to toggle source
# File test-unit-3.5.5/lib/test/unit/assertion-failed-error.rb, line 14
def debug_on_failure=(boolean)
  @debug_on_failure = boolean
end
debug_on_failure?() click to toggle source
# File test-unit-3.5.5/lib/test/unit/assertion-failed-error.rb, line 18
def debug_on_failure?
  @debug_on_failure
end
new(message=nil, options=nil) click to toggle source
Calls superclass method
# File test-unit-3.5.5/lib/test/unit/assertion-failed-error.rb, line 25
def initialize(message=nil, options=nil)
  options ||= {}
  @expected = options[:expected]
  @actual = options[:actual]
  @inspected_expected = options[:inspected_expected]
  @inspected_actual = options[:inspected_actual]
  @user_message = options[:user_message]
  super(message)
  debug_on_failure
end