Rack::Test with Rails 3 / RSpec
If you want to use Rack::Test with Rails 3 and RSpec, you’ll want to add
to your spec_helper.rb
Once this is done, the tests will run fine. This is useful, because it allows the same tests to be used regardless of the backend - be it Sinatra, Rails 3, or raw rack