# File lib/rspec/matchers/eq.rb, line 15 def eq(expected) Matcher.new :eq, expected do |_expected_| diffable match do |actual| actual == _expected_ end failure_message_for_should do |actual| "\nexpected \#{_expected_.inspect}\ngot \#{actual.inspect}\n\n(compared using ==)\n" end failure_message_for_should_not do |actual| "\nexpected \#{actual.inspect} not to equal \#{_expected_.inspect}\n\n(compared using ==)\n" end description do "== #{_expected_}" end end end