Class: Protest::ErroredTest

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

Overview

Encapsulates the relevant information for a test which raised an unrescued exception.

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) ⇒ ErroredTest

:nodoc:



71
72
73
74
# File 'lib/protest/tests.rb', line 71

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