An easy way to specify resource routes in rails

Is there a short and dry way to check all routes generated by resources: xxx?

+3
source share
3 answers

As people set out in front of me, you usually don't check routes. However, if you have something complicated, like the subdomain restrictions in the routes file that you want to make damn sure go to the right place, I would recommend (with a touch) to read my article on Testing Rails Queries .

+1
source

rails generate, . , rake test:functionals.

: (- ), .

, , - , .

0

, , Rails . , - , , , /.

0

Source: https://habr.com/ru/post/1777990/


All Articles