Sha256: 1ddcf1f1917e9ed84d0aed8bf7183f5b45dd7008b475a5ff3c432608bae91501

Contents?: true

Size: 687 Bytes

Versions: 4

Compression:

Stored size: 687 Bytes

Contents

# frozen_string_literal: true

require "expresenter"

module RSpec
  module Clone
    module Error
      # Exception for pending expectations.
      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.4 lib/r_spec/clone/error/pending_expectation.rb
r_spec-clone-1.2.3 lib/r_spec/clone/error/pending_expectation.rb
r_spec-clone-1.2.2 lib/r_spec/clone/error/pending_expectation.rb
r_spec-clone-1.2.1 lib/r_spec/clone/error/pending_expectation.rb