Class: OnlyofficeTestrailWrapper::RspecExceptionMock

Inherits:
Object
  • Object
show all
Defined in:
lib/onlyoffice_testrail_wrapper/mock/rspec_example_mock.rb

Overview

Mock Rspec example exception

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(backtrace = %w[TestBackTraceLine1 TestBackTraceLine2])) ⇒ RspecExceptionMock

Returns a new instance of RspecExceptionMock.



8
9
10
# File 'lib/onlyoffice_testrail_wrapper/mock/rspec_example_mock.rb', line 8

def initialize(backtrace = %w[TestBackTraceLine1 TestBackTraceLine2])
  @backtrace = backtrace
end

Instance Attribute Details

#backtraceObject

Returns the value of attribute backtrace.



6
7
8
# File 'lib/onlyoffice_testrail_wrapper/mock/rspec_example_mock.rb', line 6

def backtrace
  @backtrace
end

Instance Method Details

#to_sString

Returns string version of exception.

Returns:

  • (String)

    string version of exception



13
14
15
# File 'lib/onlyoffice_testrail_wrapper/mock/rspec_example_mock.rb', line 13

def to_s
  @backtrace
end