This project is archived and is in readonly mode.

#1588 ✓committed
Jesse Newland

Integration Testing Cleanup for Metal

Reported by Jesse Newland | December 17th, 2008 @ 02:35 PM | in 2.x

When attempting to test Rails Metal, I ran into several initial problems:

  • PATH_INFO (as used in the example Metal) wasn't being set by the test request
  • response body wasn't available

The attached patch includes the PATH_INFO environment variable in the request, and wraps responses from Rack Middleware and Rails Metal in an AbstractResponse object, thus enabling use of testing helpers like assert_response, et al.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Referenced by

Pages