Help with xhr request in integration tests



The documentation at for
ActionController::TestProcess#xhr or xml_http_reponse gives method as
the first parameter and action as the second parameter folled by the
parameters hash, etc. But ActionController::Integration::Session#xhr
has a path, followed by the parametes hash, and apparently no alias
for xhr. Of course, the documentation in the AWDwR book would tend to
throw one off (I know that integration tests are new.)

In my views I have either a link_to_remote tag or either a
form_remote_tag or submit_to_remote tag. When integration testing, how
does Rails know whether it is a xhr :get or a xhr :post just from the