Sha256: 63bf9ec856f46ef0e7841c89d7f2b383439061a9332059a309aa3240e6c07917

Contents?: true

Size: 530 Bytes

Versions: 1

Compression:

Stored size: 530 Bytes

Contents

require_relative File.join 'expect', 'expectation_target'

# Namespace for the Expect library.
#
# @api public
#
# @example Expect 42 to be equal to 42
#   Expect.this { 42 }.to Equal: 42 # => true
module Expect
  # Expectations are built with this method.
  #
  # @api public
  #
  # @example Identity expectation
  #   this { 42 }.to Equal: 42 # => true
  #
  # @param input [Proc] the code to test.
  #
  # @return [ExpectationTarget] the expectation target.
  def self.this(&input)
    ExpectationTarget.new(&input)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
expect-0.0.10 lib/expect.rb