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.
558 559 560 |
# File 'lib/rspec/matchers.rb', line 558 def eq(expected) BuiltIn::Eq.new(expected) end |