Object
# File lib/rspec/mocks/argument_matchers.rb, line 55 def initialize(expected) @expected = expected end
# File lib/rspec/mocks/argument_matchers.rb, line 59 def ==(actual) @expected.all? {|k,v| actual.has_key?(k) && v == actual[k]} rescue NoMethodError false end
# File lib/rspec/mocks/argument_matchers.rb, line 65 def description "hash_including(#{@expected.inspect.sub(/^\{/,"").sub(/\}$/,"")})" end
[Validate]
Generated with the Darkfish Rdoc Generator 2.