-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated requests specs are not consistent with naming #2355
Comments
A fix is much appreciated. Thanks for reporting! |
A more broad question @pirj @JonRowe Is there some basic idea about when the spec files should get the type suffix and when not? When I made the changes to favor the request specs (see PRs #2262 and #2288) I oriented myself on how the controller spec file names were and still are ( The thinking that I can come up with is that people often type in only a file name to open and it could become confusing when both the model spec files and are named similarly ( |
Controller specs are named |
This is closed wih #2378 |
Good spot, this should have been autoclosed. |
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 createspec/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?
The text was updated successfully, but these errors were encountered: