Skip to content

request.path_parameters has strings as keys, while in real environment it's symbols #461

@ndbroadbent

Description

@ndbroadbent

Following on from this comment on issue #172.

I'm writing tests for code that uses controller.request.path_parameters, but I have to use symbolize_keys in order to stay 'compatible' with RSpec:

controller.request.path_parameters.symbolize_keys[:action]

symbolize_keys is an ok workaround, but I really think that the path_parameters should match those in the real Rails environment.

If you think it's a good idea, I'll change it to have symbols as keys, and send a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions