Displaying 1 result from an estimated 1 matches for "register_uri".
Did you mean:
register_ipi
2006 May 23
0
FakeWeb test helper for Net::HTTP / open-uri web requests
..., e.g. open-uri) to
return arbitrary responses or exceptions for a given set of request
URLs.
* Speed up tests that involve remote HTTP round trips.
* 100% C0 test coverage as reported by rcov
* Works for all regular HTTP requests, as well as Proxied and HTTPS requests.
== Two-line Example
FakeWeb.register_uri("http://example.com/", :string => "Hello World")
open("http://example.com/").string # => "Hello World"
== Another Example
FakeWeb.register_uri("http://example.com/", :response => `curl -i
http://www.google.com/`)
Net::HTTP.get_response(&qu...