Parent

Class/Module Index [+]

Quicksearch

RSpec::Matchers::BuiltIn::Eq

Public Instance Methods

diffable?() click to toggle source
# File lib/rspec/matchers/built_in/eq.rb, line 19
def diffable?
  true
end
failure_message_for_should() click to toggle source
# File lib/rspec/matchers/built_in/eq.rb, line 11
def failure_message_for_should
  "\nexpected: #{expected.inspect}\n     got: #{actual.inspect}\n\n(compared using ==)\n"
end
failure_message_for_should_not() click to toggle source
# File lib/rspec/matchers/built_in/eq.rb, line 15
def failure_message_for_should_not
  "\nexpected: value != #{expected.inspect}\n     got: #{actual.inspect}\n\n(compared using ==)\n"
end
matches?(actual) click to toggle source
# File lib/rspec/matchers/built_in/eq.rb, line 7
def matches?(actual)
  super(actual) == expected
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.