Class: OnlyofficeTestrailWrapper::RspecExceptionMock
- Inherits:
-
Object
- Object
- OnlyofficeTestrailWrapper::RspecExceptionMock
- Defined in:
- lib/onlyoffice_testrail_wrapper/mock/rspec_example_mock.rb
Overview
Mock Rspec example exception
Instance Attribute Summary collapse
-
#backtrace ⇒ Object
Returns the value of attribute backtrace.
Instance Method Summary collapse
-
#initialize(backtrace = %w[TestBackTraceLine1 TestBackTraceLine2])) ⇒ RspecExceptionMock
constructor
A new instance of RspecExceptionMock.
-
#to_s ⇒ String
String version of exception.
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
#backtrace ⇒ Object
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_s ⇒ String
Returns string version of exception.
13 14 15 |
# File 'lib/onlyoffice_testrail_wrapper/mock/rspec_example_mock.rb', line 13 def to_s @backtrace end |