Found myself needing a list of routes in an rspec controller test. This did the trick:
Rails.application.routes.routes.map{|e| e.path.spec.to_s }Developer from somewhere
Found myself needing a list of routes in an rspec controller test. This did the trick:
Rails.application.routes.routes.map{|e| e.path.spec.to_s }