How to get raw_post in functional tests

Hi !

I’m testing PayPal integration, and am using the Paypal gem. The
Paypal gem requires the raw POST data, and not the pre-munged version
that Rails uses.

Running in dev mode, everything works fine, but in the tests, I can’t
seem to get at the data.

I did:
class ActionController::TestRequest < AbstractRequest #:nodoc:
def raw_post
raise “RAW_POST Request”
end
end

but I never see this exception raised ?!

Anyone has a tip ?

Thanks !