Is there a way to get a list of registered URIs in FakeWeb? When I register one like:
FakeWeb.register_uri(:get, url, body: expected_response)
It seems like it should be available somewhere since it keeps track of it internally, but I can't track it down externally. Something like FakeWeb.registered_uris, but obviously that doesn't work.
Try
This returns a nested hash with
FakeWeb::Responderobjects.When you register a uri with #register_uri, FakeWeb creates a
FakeWeb::Responderwhich holds the uri, which is then stored within theFakeWeb::Registrysingleton.You finally have to iterate the result map and get the uri's out of it:
Hope this helps.