title: Override action_controller.allow_forgery_protection for specific integration test
body: <p>I have a rails3 app that uses <code>protect_from_forgery</code> in my base application controller. I'm using <code>ActionDispatch::IntegrationTest</code> and want to ensure that authenticity tokens are present during certain integration tests.</p>
  
  <p>I don't want every functional test that executes a post to have to pass up an <code>authenticity_token</code>, so my <code>test.rb</code> file specifies:</p>
  
  <pre><code>  config.action_controller.allow_forgery_protection    = false
  </code></pre>
  
  <p>as the rails docs suggest. </p>
  
  <p>For integration tests, however, I'd love to make sure that my forms are sending up the authenticity token properly. I cannot find any way to do this without changing the setting globally in <code>config/environments/test.rb</code></p>
  
  <p>If all my forms were generated with <code>form_for</code> I'd be content to trust that rails handles this, but I use ExtJS and have a number of ExtJS Forms that need to specify this manually, so I really should test that the plumbing is all working.</p>