class RSpec::Expectations::ExpectationTarget

Wraps the target of an expectation.

@example

expect(something)       # => ExpectationTarget wrapping something
expect { do_something } # => ExpectationTarget wrapping the block

# used with `to`
expect(actual).to eq(3)

# with `not_to`
expect(actual).not_to eq(3)

@note ‘ExpectationTarget` is not intended to be instantiated

directly by users. Use `expect` instead.