Class/Module Index [+]

Quicksearch

RSpec::Matchers::BuiltIn::Eq

@api private Provides the implementation for `eq`. Not intended to be instantiated directly.

Public Instance Methods

description() click to toggle source

@api private @return [String]

# File lib/rspec/matchers/built_in/eq.rb, line 22
def description
  "#{name_to_sentence} #{@expected.inspect}"
end
diffable?() click to toggle source

@api private @return [Boolean]

# File lib/rspec/matchers/built_in/eq.rb, line 28
def diffable?
  true
end
failure_message() click to toggle source

@api private @return [String]

# File lib/rspec/matchers/built_in/eq.rb, line 10
def failure_message
  "\nexpected: #{format_object(expected)}\n     got: #{format_object(actual)}\n\n(compared using ==)\n"
end
failure_message_when_negated() click to toggle source

@api private @return [String]

# File lib/rspec/matchers/built_in/eq.rb, line 16
def failure_message_when_negated
  "\nexpected: value != #{format_object(expected)}\n     got: #{format_object(actual)}\n\n(compared using ==)\n"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.