title: How can I assert that no route matches in a Rails integration test?
body: <p>I have a Rails 3 integration test which tests my routes. It contains tests such as:</p>
  
  <pre><code>assert_routing(
      "/#{@category.url.path}/#{@foo.url.path}",
      { :controller =&gt; 'foo', :action =&gt; 'show', :category =&gt; @category.to_param, :foo =&gt; @foo.to_param }
  )
  </code></pre>
  
  <p>I would also like to test a case where no routes should match. Obviously, testing generation has no meaning in this case, so I just need the inverse of assert_recognizes. I'd like to be able to do something like this:</p>
  
  <pre><code>assert_not_recognized('/adfhkljkdhasjklhjkldfahsjkhdf')
  </code></pre>
  
  <p>Any ideas, short of wrapping assert_recognizes in an assert_raises block (which is actually not so terrible, now that I think about it)?</p>