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:
it "404" do
get "/some_url_404"
expect(response.status).to eq 404
end
The test itself fails with:
ActionController::RoutingError: No route matches [GET] "/some_url_404"
update
the answer hasn't been given yet.