Class: RSpec::Core::Example

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

Overview

Override for Rspec Example class

Instance Method Summary collapse

Instance Method Details

#add_custom_exception(comment) ⇒ Object



7
8
9
10
11
# File 'lib/onlyoffice_testrail_wrapper/rspec_extension.rb', line 7

def add_custom_exception(comment)
  e = Exception.exception(comment)
  e.set_backtrace('')
  @exception = e
end