Exception: RSpec::Clone::Error::PendingExpectation Private

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/r_spec/clone/error/pending_expectation.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Exception for pending expectations.

Class Method Summary collapse

Class Method Details

.result(message) ⇒ nil

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns Write a pending expectation to STDOUT.

Parameters:

  • message (String)

    The not implemented expectation description.

Returns:

  • (nil)

    Write a pending expectation to STDOUT.



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/r_spec/clone/error/pending_expectation.rb', line 13

def self.result(message)
  ::Expresenter.call(true).with(
    actual:     new(message),
    definition: "raise exception #{self}",
    error:      nil,
    expected:   self,
    got:        false,
    negate:     true,
    level:      :SHOULD
  )
end