Exception: Minitest::UnexpectedError
- Defined in:
- opal/stdlib/minitest.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:
681 682 683 684 |
# File 'opal/stdlib/minitest.rb', line 681 def initialize exception # :nodoc: super self.exception = exception end |
Instance Attribute Details
#exception ⇒ Object
:nodoc:
679 680 681 |
# File 'opal/stdlib/minitest.rb', line 679 def exception @exception end |
Instance Method Details
#backtrace ⇒ Object
:nodoc:
686 687 688 |
# File 'opal/stdlib/minitest.rb', line 686 def backtrace # :nodoc: self.exception.backtrace end |
#error ⇒ Object
:nodoc:
690 691 692 |
# File 'opal/stdlib/minitest.rb', line 690 def error # :nodoc: self.exception end |
#message ⇒ Object
:nodoc:
694 695 696 697 |
# File 'opal/stdlib/minitest.rb', line 694 def # :nodoc: bt = Minitest::filter_backtrace(self.backtrace).join "\n " "#{self.exception.class}: #{self.exception.}\n #{bt}" end |
#result_label ⇒ Object
:nodoc:
699 700 701 |
# File 'opal/stdlib/minitest.rb', line 699 def result_label # :nodoc: "Error" end |