title: How to test a url which doesn't exist in Rspec?
body: <p>I want to validate that <strong>my url in my web application</strong> 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:</p>
  
  <pre><code>it "404" do
    get "/some_url_404"
    expect(response.status).to eq 404
  end
  </code></pre>
  
  <p>The test itself fails with:</p>
  
  <p>ActionController::RoutingError:
         No route matches [GET] "/some_url_404"</p>
  
  <p><strong>update</strong></p>
  
  <p>the answer hasn't been given yet. </p>