Module: Expect Private

Defined in:
lib/expect.rb,
lib/expect/matcher.rb,
lib/expect/expectation_target.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.

Namespace for the Expect library.

Defined Under Namespace

Modules: Matcher Classes: ExpectationTarget

Class Method Summary collapse

Class Method Details

.this(&input) ⇒ ExpectationTarget

Expectations are built with this method.

Examples:

Identity expectation

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

Returns:



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

def self.this(&input)
  ExpectationTarget.new(&input)
end