-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Singularize classes for feature names #1503
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
Conversation
Fixes issue rspec#1403
Do we not have tests for the generators? |
@dysnomian thanks for the pull request! Could you make it so that the singularization only happens on an option, rather than the default? I'm also very surprised that none of our tests failed here. @cupakromer my best guess is that it's because we use |
Yes, it looks like we simply have been passing plural options in our specs - so nothing failed. Clearly a gap in our specs testing that we "pluralized" stuff (>ლ). Also the change to the filename isn't covered by our specs either 😬 While this PR doesn't exactly singularize anything, it doesn't pluralize everything. 👍 If we can add a spec case for this that would be great. In regards to the naming, I'm a little concerned that is a divergent change. The original use of $ bin/rails g rspec:feature warehouse::widget
create spec/features/warehouse/warehouse_widgets_spec.rb With this change we now will get: $ bin/rails g rspec:feature warehouse::widget
create spec/features/warehouse/warehouse::widget_spec.rb |
@samphippen, @cupakromer: Thanks for the feedback! Next steps:
Sound right? |
@dysnomian that sounds good to me. |
@dysnomian just wanted to check this was still something you're interested in working on? Let me know if you need any further help. |
@samphippen Yeah, still interested! |
Changes made. Any comments? |
This looks good. I'm going to locally add a changelog, and merge it down. |
@dysnomian it is my intention to merge this via #1508 when that PR passes CI. |
This was merged via #1508 |
This PR addresses issue #1403 by singularizing the class and table names in the feature generators.