Forum: Ruby on Rails Help with xhr request in integration tests

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ed Howland (Guest)
on 2006-05-31 20:21
(Received via mailing list)

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

This topic is locked and can not be replied to.