Method: FakeWeb.response_for

Defined in:
lib/fake_web.rb

.response_for(*args, &block) ⇒ Object

call-seq:

FakeWeb.response_for(method, uri)
FakeWeb.response_for(uri)

Returns the faked Net::HTTPResponse object associated with uri.



119
120
121
122
# File 'lib/fake_web.rb', line 119

def self.response_for(*args, &block) #:nodoc: :yields: response
  method, uri = extract_arguments(args)
  Registry.instance.response_for(method, uri, &block)
end