Exception: Betatest::UnexpectedError
- Defined in:
- lib/betatest.rb
Overview
Assertion wrapping an unexpected error that was raised during a run.
Instance Attribute Summary collapse
-
#exception ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#backtrace ⇒ Object
:nodoc:.
-
#error ⇒ Object
:nodoc:.
-
#initialize(exception) ⇒ UnexpectedError
constructor
:nodoc:.
-
#message ⇒ Object
:nodoc:.
-
#result_label ⇒ Object
:nodoc:.
Methods inherited from Assertion
Constructor Details
#initialize(exception) ⇒ UnexpectedError
:nodoc:
670 671 672 673 |
# File 'lib/betatest.rb', line 670 def initialize exception # :nodoc: super self.exception = exception end |
Instance Attribute Details
#exception ⇒ Object
:nodoc:
668 669 670 |
# File 'lib/betatest.rb', line 668 def exception @exception end |
Instance Method Details
#backtrace ⇒ Object
:nodoc:
675 676 677 |
# File 'lib/betatest.rb', line 675 def backtrace # :nodoc: self.exception.backtrace end |
#error ⇒ Object
:nodoc:
679 680 681 |
# File 'lib/betatest.rb', line 679 def error # :nodoc: self.exception end |
#message ⇒ Object
:nodoc:
683 684 685 686 |
# File 'lib/betatest.rb', line 683 def # :nodoc: bt = Betatest::filter_backtrace(self.backtrace).join "\n " "#{self.exception.class}: #{self.exception.}\n #{bt}" end |
#result_label ⇒ Object
:nodoc:
688 689 690 |
# File 'lib/betatest.rb', line 688 def result_label # :nodoc: "Error" end |