Object
# File lib/spec/mocks/argument_matchers.rb, line 58 def initialize(expected) @expected = expected end
# File lib/spec/mocks/argument_matchers.rb, line 62 def ==(actual) @expected.each do | key, value | return false unless actual.has_key?(key) && value == actual[key] end true rescue NoMethodError => ex return false end
# File lib/spec/mocks/argument_matchers.rb, line 71 def description "hash_including(#{@expected.inspect.sub(/^\{/,"").sub(/\}$/,"")})" end
[Validate]
Generated with the Darkfish Rdoc Generator 2.