Parent

Class Index [+]

Quicksearch

Spec::Mocks::ArgumentMatchers::HashIncludingMatcher

Public Class Methods

new(expected) click to toggle source
    # File lib/spec/mocks/argument_matchers.rb, line 58
58:         def initialize(expected)
59:           @expected = expected
60:         end

Public Instance Methods

==(actual) click to toggle source
    # File lib/spec/mocks/argument_matchers.rb, line 62
62:         def ==(actual)
63:           @expected.each do | key, value |
64:             return false unless actual.has_key?(key) && value == actual[key]
65:           end
66:           true
67:         rescue NoMethodError => ex
68:           return false
69:         end
description() click to toggle source
    # File lib/spec/mocks/argument_matchers.rb, line 71
71:         def description
72:           "hash_including(#{@expected.inspect.sub(/^\{/,"").sub(/\}$/,"")})"
73:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.