Skip to content

Generated requests specs are not consistent with naming #2355

@eloyesp

Description

@eloyesp

We noticed while working on tpope/vim-rails#368 , that generators does use a different naming scheme for requests specs.

For example, for a Posts Controller, the scaffold generator use spec/requests/posts_spec.rb, while using the controller generator does create spec/requests/posts_request_spec.rb.

There is a shared example for requests specs here that does use the first naming, that might be re-used everywhere to have a consistent naming scheme.

It seems like a minor issue, what are your opinions about this?

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