Class: Assert::Result::Error

Inherits:
FromException show all
Defined in:
lib/assert/result.rb,
lib/assert/result.rb

Instance Attribute Summary

Attributes inherited from Base

#backtrace, #message, #test_name

Instance Method Summary collapse

Methods inherited from FromException

#initialize

Methods inherited from Base

#==, #initialize, #inspect

Constructor Details

This class inherits a constructor from Assert::Result::FromException

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


159
# File 'lib/assert/result.rb', line 159

def error?; true; end

#to_sObject



162
163
164
# File 'lib/assert/result.rb', line 162

def to_s
  "ERROR: #{super}"
end

#to_symObject



160
# File 'lib/assert/result.rb', line 160

def to_sym; :errored; end

#traceObject

override of the base, always show the full unfiltered backtrace for errors



167
168
169
# File 'lib/assert/result.rb', line 167

def trace
  self.backtrace.to_s
end