Method: RSpec::Matchers#eql

Defined in:
lib/rspec/matchers.rb

#eql(expected) ⇒ Object Also known as: an_object_eql_to, eql_to

Passes if actual.eql?(expected)

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

Examples:

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


572
573
574
# File 'lib/rspec/matchers.rb', line 572

def eql(expected)
  BuiltIn::Eql.new(expected)
end