Sha256: 2a15090759163eda3bd1c7f427f8c2a5253f439d1f77d5030f533c0698f4d6a2

Contents?: true

Size: 716 Bytes

Versions: 4

Compression:

Stored size: 716 Bytes

Contents

# frozen_string_literal: true

require "expresenter"

module RSpec
  module Clone
    module Error
      # Exception for pending expectations.
      #
      # @api private
      class PendingExpectation < ::RuntimeError
        # @param message [String] The not implemented expectation description.
        #
        # @return [nil] Write a pending expectation to STDOUT.
        def self.result(message)
          ::Expresenter.call(true).with(
            actual:   new(message),
            error:    nil,
            expected: self,
            got:      false,
            matcher:  :raise_exception,
            negate:   true,
            level:    :SHOULD
          )
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
r_spec-clone-1.2.0 lib/r_spec/clone/error/pending_expectation.rb
r_spec-clone-1.1.0 lib/r_spec/clone/error/pending_expectation.rb
r_spec-clone-1.0.2 lib/r_spec/clone/error/pending_expectation.rb
r_spec-clone-1.0.0.rc1 lib/r_spec/clone/error/pending_expectation.rb