Module: Expect::DSL Private

Defined in:
lib/expect/dsl.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Expectation’s domain-specific language.

Instance Method Summary collapse

Instance Method Details

#expect(&input) ⇒ ExpectationTarget

Expectations are built with this method.

Examples:

Duck example

expect { 42 }.to equal: 42 # => true

Returns:



14
15
16
# File 'lib/expect/dsl.rb', line 14

def expect(&input)
  ExpectationTarget.new(&input)
end