Parent

Included Modules

Class Index [+]

Quicksearch

RSpec::Matchers::BuiltIn::Equal

Public Instance Methods

diffable?() click to toggle source
    # File lib/rspec/matchers/built_in/equal.rb, line 36
36:         def diffable?
37:           true
38:         end
failure_message_for_should() click to toggle source
    # File lib/rspec/matchers/built_in/equal.rb, line 11
11:         def failure_message_for_should
12:           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.
13:         end
failure_message_for_should_not() click to toggle source
    # File lib/rspec/matchers/built_in/equal.rb, line 25
25:         def failure_message_for_should_not
26:           return expected not #{inspect_object(actual)}         got #{inspect_object(expected)}Compared using equal?, which compares object identity.
27:         end
matches?(actual) click to toggle source
   # File lib/rspec/matchers/built_in/equal.rb, line 7
7:         def matches?(actual)
8:           super(actual).equal?(expected)
9:         end

Private Instance Methods

inspect_object(o) click to toggle source
    # File lib/rspec/matchers/built_in/equal.rb, line 42
42:         def inspect_object(o)
43:           "#<#{o.class}:#{o.object_id}> => #{o.inspect}"
44:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.