title: Test (with RSpec) a controller outside of a Rails environment
body: <p>I'm creating a gem that will generate a controller for the Rails app that will use it. It's been a trial and error process for me when trying to test a controller. When testing models, it's been pretty easy, but when testing controllers, ActionController::TestUnit is not included (as described <a href="https://stackoverflow.com/questions/2543885/why-dont-rspecs-methods-get-post-put-delete-work-in-a-controller-sp">here</a>). I've tried requiring it, and all similar sounding stuff in Rails but it hasn't worked.</p>
  
  <p>What would I need to require in the spec_helper to get the test to work?</p>
  
  <p>Thanks!</p>