Sha256: 97a5fcb5970bb31ba4889ed330670fabd7e82233d0aadabab6b8782d4768f216

Contents?: true

Size: 710 Bytes

Versions: 6

Compression:

Stored size: 710 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),
            definition: "raise exception #{self}",
            error:      nil,
            expected:   self,
            got:        false,
            negate:     true,
            level:      :SHOULD
          )
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
r_spec-clone-1.7.1 lib/r_spec/clone/error/pending_expectation.rb
r_spec-clone-1.7.0 lib/r_spec/clone/error/pending_expectation.rb
r_spec-clone-1.6.0 lib/r_spec/clone/error/pending_expectation.rb
r_spec-clone-1.5.0 lib/r_spec/clone/error/pending_expectation.rb
r_spec-clone-1.4.0 lib/r_spec/clone/error/pending_expectation.rb
r_spec-clone-1.3.0 lib/r_spec/clone/error/pending_expectation.rb