Parent

Class Index [+]

Quicksearch

Spec::Mocks::ArgumentMatchers::HashNotIncludingMatcher

Public Class Methods

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

Public Instance Methods

==(actual) click to toggle source
    # File lib/spec/mocks/argument_matchers.rb, line 81
81:         def ==(actual)
82:           @expected.each do | key, value |
83:             return false if actual.has_key?(key) && value == actual[key]
84:           end
85:           true
86:         rescue NoMethodError => ex
87:           return false
88:         end
description() click to toggle source
    # File lib/spec/mocks/argument_matchers.rb, line 90
90:         def description
91:           "hash_not_including(#{@expected.inspect.sub(/^\{/,"").sub(/\}$/,"")})"
92:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.