I am looking for successful methods for testing WebSocket push events using RSpec. My application currently uses Pusher App, but more broad information relating to WebSockets is most welcome.
Ideally, I'd like something as simple as:
parsed_body = JSON.parse(response.body)
parsed_body["error"].should == "xyzError"
...which I have found to be an awesomely convenient way to test for JSON responses.
Sincere thanks in advance.