Method: WebMock::API#assert_not_requested

Defined in:
lib/webmock/api.rb

#assert_not_requested(*args, &block) ⇒ Object Also known as: refute_requested



31
32
33
34
35
36
37
38
# File 'lib/webmock/api.rb', line 31

def assert_not_requested(*args, &block)
  if not args[0].is_a?(WebMock::RequestStub)
    args = convert_uri_method_and_options_to_request_and_options(args[0], args[1], args[2], &block)
  elsif block
    raise ArgumentError, "assert_not_requested with a stub object, doesn't accept blocks"
  end
  assert_request_not_requested(*args)
end