testing angular pubnub chat within rails