class PseudoExampleFailed
class is describe object like RSpec::Core::Example with error in expected code
Public Class Methods
new(description = 'Check something', exception_with_failed_lines: false)
click to toggle source
Calls superclass method
PseudoExample::new
# File lib/onlyoffice_tcm_helper/models/pseudo_example_failed.rb, line 7 def initialize(description = 'Check something', exception_with_failed_lines: false) @exception_with_failed_lines = exception_with_failed_lines super(description) end
Public Instance Methods
exception()
click to toggle source
@return [Object] exception data
# File lib/onlyoffice_tcm_helper/models/pseudo_example_failed.rb, line 23 def exception return MockFailedException.new if @exception_with_failed_lines 'expected: falsey value got: true' end
metadata()
click to toggle source
@return [Hash] metadata of class
# File lib/onlyoffice_tcm_helper/models/pseudo_example_failed.rb, line 14 def metadata { description: 'Test for create failed status result', execution_result: ExecutingResult.new, absolute_file_path: "#{Dir.pwd}/spec/onlyoffice_tcm_helper_spec.rb" } end