Sha256: 1755e5ca5b4643d818620747846bb833bef88bd176fa8462f1bc2f3c6c89ef4c

Contents?: true

Size: 484 Bytes

Versions: 1

Compression:

Stored size: 484 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
  #
  # @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.9 lib/expect.rb