Flowdock
method

hash_including

Importance_1
1.1.12 - Show latest stable - 0 notes - Class: Spec::Mocks::ArgumentConstraints
hash_including(*args) public

:call-seq:

  object.should_receive(:message).with(hash_including(:key => val))
  object.should_receive(:message).with(hash_including(:key))
  object.should_receive(:message).with(hash_including(:key, :key2 => val2))

Passes if the argument is a hash that includes the specified key(s) or key/value pairs. If the hash includes other keys, it will still pass.

Show source
Register or log in to add new notes.