Parent

RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher

Public Class Methods

new(expected) click to toggle source
    # File lib/rspec/mocks/argument_matchers.rb, line 53
53:         def initialize(expected)
54:           @expected = expected
55:         end

Public Instance Methods

==(actual) click to toggle source
    # File lib/rspec/mocks/argument_matchers.rb, line 57
57:         def ==(actual)
58:           @expected.all? {|k,v| actual.has_key?(k) && v == actual[k]}
59:         rescue NoMethodError
60:           false
61:         end
description() click to toggle source
    # File lib/rspec/mocks/argument_matchers.rb, line 63
63:         def description
64:           "hash_including(#{@expected.inspect.sub(/^\{/,"").sub(/\}$/,"")})"
65:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.