Sha256: b16ce71c675f309942831027fb1e1e6efc94aaff95d600dc53db7dacf1f75f7b
Contents?: true
Size: 680 Bytes
Versions: 3
Compression:
Stored size: 680 Bytes
Contents
# frozen_string_literal: true require "expresenter" module RSpec 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, valid: false ) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
r_spec-1.0.0.beta8 | lib/r_spec/error/pending_expectation.rb |
r_spec-1.0.0.beta7 | lib/r_spec/error/pending_expectation.rb |
r_spec-1.0.0.beta6 | lib/r_spec/error/pending_expectation.rb |