I am looking for successful methods for testing PushSupport events through RSpec. My application currently uses the Pusher application, but WebSockets information is more widely distributed.
Ideally, I would like something simple:
parsed_body = JSON.parse(response.body) parsed_body["error"].should == "xyzError"
... which I found in a very convenient way to test JSON responses.
Sincere thanks in advance.
tbaums
source share