Class: Protest::FailedTest

Inherits:
Test
  • Object
show all
Includes:
TestWithErrors
Defined in:
lib/protest/tests.rb

Overview

Encapsulates the relevant information for a test which failed an assertion.

Instance Attribute Summary

Attributes included from TestWithErrors

#error

Attributes inherited from Test

#test, #test_name

Instance Method Summary collapse

Methods included from TestWithErrors

#backtrace, #error_message, #file, #line, #raw_backtrace

Constructor Details

#initialize(test, error) ⇒ FailedTest

:nodoc:



60
61
62
63
# File 'lib/protest/tests.rb', line 60

def initialize(test, error) #:nodoc:
  super(test)
  @error = error
end