Class: MockFailedException

Inherits:
Object
  • Object
show all
Defined in:
lib/onlyoffice_tcm_helper/models/pseudo_example_failed/mock_failed_exception.rb

Overview

Mock class to check exception

Instance Method Summary collapse

Instance Method Details

#backtraceArray<String>

Returns list of backtrace.

Returns:

  • (Array<String>)

    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_sString

Returns string representation.

Returns:

  • (String)

    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