Module WebMock::API
In: lib/webmock/api.rb

Methods

Public Instance methods

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))
request(method, uri)

Alias for a_request

stub_http_request(method, uri)

Alias for stub_request

[Validate]