If I mount my ActionCable app as such:
mount ActionCable.server => "/socket(/:channel/:resource_id)"
My connection objects receive and have access to request.params[:channel] and request.params[:resource_id] much as I would expect.
If I then write a test to verify the behavior of my Connection class' authentication logic
expect { connect "/socket/somechannel/somebogusid" }.to have_rejected_connection
My Connection class receives empty params in the Request object. This basically means I cannot test anything I need to.
Am I missing something or is this a legitimate deficiency of this library?
If I mount my ActionCable app as such:
mount ActionCable.server => "/socket(/:channel/:resource_id)"My connection objects receive and have access to
request.params[:channel]andrequest.params[:resource_id]much as I would expect.If I then write a test to verify the behavior of my
Connectionclass' authentication logicexpect { connect "/socket/somechannel/somebogusid" }.to have_rejected_connectionMy
Connectionclass receives empty params in theRequestobject. This basically means I cannot test anything I need to.Am I missing something or is this a legitimate deficiency of this library?