How I posted xml in a functional test

Krat,

You might want to try integration testing. I have a doc patch open
(http://dev.rubyonrails.org/ticket/7039) with an example
(http://dev.rubyonrails.org/attachment/ticket/7039/additional_integration_testing_docs.diff)
on posting raw data.

Hope this helps,