title: How do you test the params hash in a Rails test?
body: <p>The following generates an error: "undefined local variable or method `params'"</p>
  
  <p><code>assert_equal params[:recipient_id], users(:one).id</code></p>
  
  <p>How do you test the params hash?</p>
  
  <p>Also, how do you test <code>assert_redirect</code> when there are params present? The params are appended to the URL, so testing for <code>model_path</code> or similar fails.</p>
  
  <p>Working with built in test class in Rails 3.</p>