Closed joemsak closed 9 years ago
Also, sorry I forgot to say: Rails 4.1.6, ruby 2.1.2
Any luck on a solution? I don't see anything immediately wrong.
Have you tried enabling verbose logging for PusherFake
? That should help confirm if it's sending the event. If not then it might be worth digging into the Thin server to confirm it's receiving it there and to see where it's failing. (I should add logging to it too.)
Going to assume you worked this out, so I'm closing. Feel free to reopen if that's not the case.
Hey, I am not sure what I'm doing wrong, but pusher-fake isn't working in tests, or in development in the browser for me. Also, if I follow the part in the documentation that says NOT to escape the javascript method with raw/html_safe, it totally doesn't work, just printing out html entities.
I tried switching to selenium/firefox to pause the tests and check the console, and it all seems to be logging and connecting fine for the channel and the subscription, but the binding doesn't seem to be working. When I send the Messenger.notify in the test or in rails console it doesn't log that event being received
When I use normal pusher in development, everything works perfectly