How to test a url which doesn't exist in Rspec?
|Added at||2016-12-28 15:12|
I want to validate that my url in my web application returns 404 Not found. I know it doesn't exist, but I need to confirm that via tests by Rspec. How? This doesn't work:
The test itself fails with:
ActionController::RoutingError: No route matches [GET] "/some_url_404"
the answer hasn't been given yet.