module RSpec::Mocks::ArgumentMatchers
def hash_excluding(*args)
object.should_receive(:message).with(hash_excluding(:key))
object.should_receive(:message).with(hash_excluding(:key => val))
@example
Matches a hash that doesn't include the specified key(s) or key/value.
def hash_excluding(*args) HashExcludingMatcher.new(anythingize_lonely_keys(*args)) end