There was no aliasing from xhr to xml_http_request in Integration Tests.
This causes you to get some weird errors if you, like me, are lazy and just type "xhr". This is because the "xhr" call is getting sent over to "test_process.rb", and not Integration::Session.
This patch adds an alias to Integration::Session and an alias to ActionController::IntegrationTest so that it proxies across.
As an aside, why do the Integration Test HTTP methods function differently from those in Functional tests? e.g
#functional
get(path, parameters=nil, session=nil, flash=nil)
#integration
get(path, parameters=nil, headers=nil)
XHR is even worse - in functional tests it takes an extra "method" parameter (i.e :post XHR or :get XHR), but not so in Integration (which just defaults to :post).
Would a patch to bring these two disparate approaches into line with each other be appreciated / used?