Class: PseudoExamplePendingButPassed

Inherits:
PseudoExample show all
Defined in:
lib/onlyoffice_tcm_helper/models/pseudo_example_pending_but_passed.rb

Overview

class is describe object like RSpec::Core::Example with pending result

Instance Attribute Summary

Attributes inherited from PseudoExample

#description, #execution_result

Instance Method Summary collapse

Methods inherited from PseudoExample

#metadata

Constructor Details

#initialize(description) ⇒ PseudoExamplePendingButPassed

Returns a new instance of PseudoExamplePendingButPassed.



7
8
9
10
11
# File 'lib/onlyoffice_tcm_helper/models/pseudo_example_pending_but_passed.rb', line 7

def initialize(description)
  super(description)
  @execution_result = ExecutingResultPending.new(pending_message:
                                                 "Expected pending 'Fake failure' to fail. No error was raised.")
end

Instance Method Details

#exceptionString

Returns exception data.

Returns:

  • (String)

    exception data



19
20
21
# File 'lib/onlyoffice_tcm_helper/models/pseudo_example_pending_but_passed.rb', line 19

def exception
  'Expected example to fail since it is pending, but it passed.'
end

#pending?True

Returns this example always pending.

Returns:

  • (True)

    this example always pending



14
15
16
# File 'lib/onlyoffice_tcm_helper/models/pseudo_example_pending_but_passed.rb', line 14

def pending?
  true
end