user3834491
user3834491

Reputation: 29

Rails. How generate url by routes?

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

Answers (1)

tadman
tadman

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

Related Questions