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.

API:

  • private

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:

  • The not implemented expectation description.

Returns:

  • Write a pending expectation to STDOUT.

API:

  • private



13
14
15
16
17
18
19
20
21
22
# 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,
    got:        false,
    negate:     true,
    level:      :SHOULD
  )
end