Method: RSpec::Matchers#eq

Defined in:
lib/rspec/matchers.rb

#eq(expected) ⇒ Object Also known as: an_object_eq_to, eq_to

Passes if actual == expected.

See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more information about equality in Ruby.

Examples:

expect(5).to     eq(5)
expect(5).not_to eq(3)


558
559
560
# File 'lib/rspec/matchers.rb', line 558

def eq(expected)
  BuiltIn::Eq.new(expected)
end