module RSpec::Matchers

def equal(expected)

expect("5").not_to equal("5") # Strings that look the same are not the same object
expect(5).to equal(5) # Fixnums are equal

@example

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

Passes if actual.equal?(expected) (object identity).
def equal(expected)
  BuiltIn::Equal.new(expected)
end