Parent

Included Modules

Files

RSpec::Matchers::Equal

Public Instance Methods

diffable?() click to toggle source
# File lib/rspec/matchers/equal.rb, line 35
def diffable?
  true
end
failure_message_for_should() click to toggle source
# File lib/rspec/matchers/equal.rb, line 10
def failure_message_for_should
  return expected #{inspect_object(expected)}     got #{inspect_object(actual)}Compared using equal?, which compares object identity,but expected and actual are not the same object. Use'actual.should == expected' if you don't care aboutobject identity in this example.
end
failure_message_for_should_not() click to toggle source
# File lib/rspec/matchers/equal.rb, line 24
def failure_message_for_should_not
  return expected not #{inspect_object(actual)}         got #{inspect_object(expected)}Compared using equal?, which compares object identity.
end
matches?(actual) click to toggle source
# File lib/rspec/matchers/equal.rb, line 6
def matches?(actual)
  super(actual).equal?(expected)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.