Sha256: 642747d8d171e383b796f0f2bf43c588fbb7dc57d7cc116c0727e00bf8ec193d
Contents?: true
Size: 662 Bytes
Versions: 7
Compression:
Stored size: 662 Bytes
Contents
# frozen_string_literal: true require_relative "shared" require_relative File.join("..", "expectation_target", "block") module RSpec module ExpectationHelper # {RSpec::Dsl.its}'s expectation helper module. module Its include Shared # Wraps the target of an expectation with the actual value. # # @return [Block] The wrapped target of an expectation. # # @example # is_expected # => #<RSpec::ExpectationTarget::Block:0x00007fb6b8263df8 @callable=#<Proc:0x00007fb6b8263e20>> # # @api public def is_expected ExpectationTarget::Block.new(method(:actual)) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems