groupon/urbanairship — pull request #18 by mbrandonw (2012-10-14 19:08:58+00:00)
Title: Test delivery method

I've added a `delivery_method` attribute to Urbanairship that allows one to stop HTTP requests from going out and records all pushes and device registrations into arrays. This can be really useful when doing unit and functional tests.

To enable, just do `Urbanairship.delivery_method = :test`, and then you can see the history of pushes and devices via `Urbanairship.delivered_notifications` and `Urbanairship.registered_devices`.