Class: MockFailedException
- Inherits:
-
Object
- Object
- MockFailedException
- Defined in:
- lib/onlyoffice_tcm_helper/models/pseudo_example_failed/mock_failed_exception.rb
Overview
Mock class to check exception
Instance Method Summary collapse
-
#backtrace ⇒ Array<String>
List of backtrace.
-
#to_s ⇒ String
String representation.
Instance Method Details
#backtrace ⇒ Array<String>
Returns list of backtrace.
12 13 14 15 16 |
# File 'lib/onlyoffice_tcm_helper/models/pseudo_example_failed/mock_failed_exception.rb', line 12 def backtrace ['trace_without_line', "#{Dir.pwd}/spec/onlyoffice_tcm_helper_spec.rb:3:in `get_status_and_comment", "#{Dir.pwd}/spec/onlyoffice_tcm_helper_spec.rb:4:in `parse"] end |
#to_s ⇒ String
Returns string representation.
6 7 8 9 |
# File 'lib/onlyoffice_tcm_helper/models/pseudo_example_failed/mock_failed_exception.rb', line 6 def to_s 'expected: falsey value got: true' end |