Method: RSpec::Matchers#expect

Defined in:
lib/rspec/matchers.rb

#expectExpectations::ExpectationTarget

Supports expect(actual).to matcher syntax by wrapping actual in an ExpectationTarget.

Examples:

expect(actual).to eq(expected)
expect(actual).not_to eq(expected)

Returns:

See Also:



# File 'lib/rspec/matchers.rb', line 263