| Module | WebMock::API |
| In: |
lib/webmock/api.rb
|
Similar to RSpec::Mocks::ArgumentMatchers#hash_including()
Matches a hash that includes the specified key(s) or key/value pairs. Ignores any additional keys.
@example
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))