Sha256: e67371a09c2f713085e1de9340898e6434f3653b94ecd0d4dfeb347e5ada8ca0

Contents?: true

Size: 401 Bytes

Versions: 1

Compression:

Stored size: 401 Bytes

Contents

require_relative 'expectation_target'

module Expect
  # Expectation's domain-specific language.
  module DSL
    # Expectations are built with this method.
    #
    # @api public
    #
    # @example Duck example
    #   expect { 42 }.to equal: 42 # => true
    #
    # @return [ExpectationTarget] the expectation target.
    def expect(&input)
      ExpectationTarget.new(&input)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
expect-0.0.1 lib/expect/dsl.rb