Sha256: cb784a3c8618c79bae35d174afd4ac20c93b3932facbd1e8d3627563f47d2bc4

Contents?: true

Size: 510 Bytes

Versions: 3

Compression:

Stored size: 510 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.
  #
  # @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

3 entries across 3 versions & 1 rubygems

Version Path
expect-0.0.13 lib/expect.rb
expect-0.0.12 lib/expect.rb
expect-0.0.11 lib/expect.rb