Parent

RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher

Public Class Methods

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

Public Instance Methods

==(actual) click to toggle source
    # File lib/rspec/mocks/argument_matchers.rb, line 73
73:         def ==(actual)
74:           @expected.none? {|k,v| actual.has_key?(k) && v == actual[k]}
75:         rescue NoMethodError
76:           false
77:         end
description() click to toggle source
    # File lib/rspec/mocks/argument_matchers.rb, line 79
79:         def description
80:           "hash_not_including(#{@expected.inspect.sub(/^\{/,"").sub(/\}$/,"")})"
81:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.