pusher / pusher-http-ruby

Ruby library for Pusher Channels HTTP API
https://pusher.com/channels
MIT License
664 stars 123 forks source link

Testing integration of pusher in an app. #100

Closed alain-andre closed 7 years ago

alain-andre commented 8 years ago

Hi there, thanks for this awesome gem. I use pusher to generate notifications to my app and I'd like to test the integration.

I do this with ActionMailer with register_interceptor and config.action_mailer.delivery_method = :test in environments/test.rb and by catching ActionMailer::Base.deliveries.

Is there an already done way to do my tests and not to send to pusher.com ?

Tybot204 commented 7 years ago

@alain-andre I recommend using this gem: https://github.com/tristandunn/pusher-fake I use it in my projects and don't have any immediate complaints!

vivangkumar commented 7 years ago

Closing this. Feel free to reopen if you're not happy with the suggestion above.