Reputation: 29
I have routes by rake routes
. It's near 800 strings. Now I want check validate route (errors, 404, ActionNotFound etc). Ideal if I can check access to pages for authorize and non-authorize users.
If I check by hand - it's very long (from route to url, then open page, then ...). May be have instruments for this task?
Upvotes: 1
Views: 126
Reputation: 211580
You probably want to expand your controller tests, write some integration tests, and most of all add routing tests using assert_routing
.
Automated testing suites are the way to do this.
Upvotes: 2