Class/Module Index [+]

Quicksearch

RSpec::Matchers::BuiltIn::Equal

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

Constants

LITERAL_SINGLETONS

Public Instance Methods

diffable?() click to toggle source

@api private @return [Boolean]

# File lib/rspec/matchers/built_in/equal.rb, line 33
def diffable?
  !expected_is_a_literal_singleton?
end
failure_message() click to toggle source

@api private @return [String]

# File lib/rspec/matchers/built_in/equal.rb, line 10
def failure_message
  if expected_is_a_literal_singleton?
    simple_failure_message
  else
    detailed_failure_message
  end
end
failure_message_when_negated() click to toggle source

@api private @return [String]

# File lib/rspec/matchers/built_in/equal.rb, line 20
def failure_message_when_negated
  expected not #{inspect_object(actual)}         got #{inspect_object(expected)}Compared using equal?, which compares object identity.
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.