Skip to content

params don't seem to be parsed out of connection requests #52

Description

@nathan-eko

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions