Parent

Class/Module Index [+]

Quicksearch

Spec::Mocks::ArgumentMatchers::HashNotIncludingMatcher

Public Class Methods

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

Public Instance Methods

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.