-
-
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
Improve route spec generation for controller generators #1160
Comments
I'm happy to take this on if nobody's working on it right now. |
Sure thanks for the help @glittershark 💙 |
Looks like @glittershark gave up on this? I'd be happy to take it on! |
@b-lambert go ahead! As far as I'm aware we've not seen any further action on this pull request :) |
I'm not sure I quite understand what the request is - rspec already generates a controller test for any route specified in the generator. What's an example of an "improved" test? For example, if you run
If the
What do we want instead? |
@siakaramalegos I believe the idea is to generate routing specs: https://www.relishapp.com/rspec/rspec-rails/v/2-4/docs/routing-specs |
Oh interesting! I'll wait a bit to see if @b-lambert picks it up. |
I had actually done this (two years ago D:) but gave up when I couldn't manage to make the tests pass. Maybe I can see if I can dredge it up from a backup on whatever computer I had then |
@glittershark see what you can dredge up! |
@cupakromer @b-lambert @glittershark If you guys don't I would like to work on this one :) |
I'm no longer working on it so it's up to @glittershark |
@cupakromer This PR should cover the requested feature. CC @b-lambert |
Seems like this issue can be closed with #2134, right? |
If you use the Rails generator to create a controller with some actions, it will automatically add basic routes for it. This feature would need to do two things:
From #1155 (see discussion)
The text was updated successfully, but these errors were encountered: