title: Rspec passing GET params to a PUT action
body: <p>I'm trying to test a PUT request to a controller, but I need to send GET and POST body params to the action. The params cannot be mashed together, as certain parts of the code access the GET params explicitly.</p>
  
  <p>How do you pass GET params to a put action?</p>
  
  <p>I have this test : </p>
  
  <pre><code>it "updates the account password to the provided value" do
    put(:update, @params)
    @account.reload.crypted_password.should == PasswordAccount.encrypt(@newpass, @account.password_salt)
  end    
  </code></pre>
  
  <p>How can i add a "token" param to the query string sent to the action?</p>