Class: PseudoExamplePendingButPassed
- Inherits:
-
PseudoExample
- Object
- PseudoExample
- PseudoExamplePendingButPassed
- 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
-
#exception ⇒ String
Exception data.
-
#initialize(description) ⇒ PseudoExamplePendingButPassed
constructor
A new instance of PseudoExamplePendingButPassed.
-
#pending? ⇒ True
This example always pending.
Methods inherited from PseudoExample
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
#exception ⇒ String
Returns 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.
14 15 16 |
# File 'lib/onlyoffice_tcm_helper/models/pseudo_example_pending_but_passed.rb', line 14 def pending? true end |