Hi Rspecians,

while working on a legacy rails app, I rewrote the custom routes to 
conventional ones using resources and so on.
Unfortunately, one route was not rewritten properly and issues surfaced 
later.

I wonder if this could be of rspec-rails gem interest, to include something 
like

rails generate rspec:exisiting_routes

to have something to work against when refactoring the routes config file.
This ideally would be covered beforehand, either in request specs or in 
routes specs. But such a feature could help in more legacy projects.

Let me know if this would suitable for rspec-rails and I can build it.

I found one gem that tried to do such a job but it didn't get much 
recognition:
https://github.com/wkirschbaum/route_tractor/

and also it doesn't play with rails 5 or 6

Thanks for the feedback,
Jakub

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/ed9eb6ad-9156-41b3-955d-e07e2c89a7c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to