# File lib/webmock/api.rb, line 12 def a_request(method, uri) WebMock::RequestPattern.new(method, uri) end
# File lib/webmock/api.rb, line 28 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, &block) end assert_request_not_requested(*args, &block) end
# File lib/webmock/api.rb, line 21 def assert_requested(*args, &block) if not args[0].is_a?(WebMock::RequestStub) args = convert_uri_method_and_options_to_request_and_options(*args, &block) end assert_request_requested(*args, &block) end
# File lib/webmock/api.rb, line 35 def hash_including(expected) if defined?(::RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher.new(expected) elsif defined?(::Spec::Mocks::ArgumentMatchers::HashIncludingMatcher) Spec::Mocks::ArgumentMatchers::HashIncludingMatcher.new(expected) else WebMock::Matchers::HashIncludingMatcher.new(expected) end end
# File lib/webmock/api.rb, line 5 def stub_request(method, uri) WebMock::StubRegistry.instance. register_request_stub(WebMock::RequestStub.new(method, uri)) end
Generated with the Darkfish Rdoc Generator 2.