Class: ASAutotest::TestRunner::Result::Failure::Equality
- Inherits:
-
ASAutotest::TestRunner::Result::Failure
- Object
- ASAutotest::TestRunner::Result
- ASAutotest::TestRunner::Result::Failure
- ASAutotest::TestRunner::Result::Failure::Equality
- Defined in:
- lib/asautotest/test-runner.rb
Constant Summary
Constants included from Logging
Instance Attribute Summary
Attributes inherited from ASAutotest::TestRunner::Result
Instance Method Summary collapse
-
#initialize(test_name, expected, actual) ⇒ Equality
constructor
A new instance of Equality.
- #report_reason! ⇒ Object
Methods inherited from ASAutotest::TestRunner::Result::Failure
Methods inherited from ASAutotest::TestRunner::Result
#local_and_suite_names, #local_name, parse_xml, #passed?, #suite_name
Methods included from Logging
#barf, #end_saying, #end_whisper, #hint, #new_logging_section, #say, #say_with_block, #say_without_block, #shout, #start_saying, #start_whisper, verbose=, verbose?, #verbose?, #whisper, #whisper_with_block, #whisper_without_block
Constructor Details
#initialize(test_name, expected, actual) ⇒ Equality
Returns a new instance of Equality.
386 387 388 389 390 |
# File 'lib/asautotest/test-runner.rb', line 386 def initialize(test_name, expected, actual) super(test_name) @expected = expected @actual = actual end |
Instance Method Details
#report_reason! ⇒ Object
392 393 394 395 |
# File 'lib/asautotest/test-runner.rb', line 392 def report_reason! puts " \e[0mActual:\e[0m \e[0m#@actual\e[0m" puts " \e[0mExpected:\e[0m \e[0m#@expected\e[0m" end |