Forum: Ruby on Rails Integration tests and xhr

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.
Bd0ecd69dba2aab1a0261ee46e090139?d=identicon&s=25 Nicholas Wieland (Guest)
on 2007-03-06 01:40
(Received via mailing list)
Hi *,
I have a page that displays a partial containing a form (_followup)
that uses ajax to post to a controller action 'add_followup' that
adds some elements to a list.
I'm not able to post to that form in integration tests.
What I'm using now is

     xml_http_request "issue/add_followup",
       :email =>, :username => foo.username, :subject =>
"[ISSUE #1] foo",
       :body => "This is a test followup.", :issue_id =>

I really have no clue on how to handle this. The response is 500,
using the console I discovered it's a NoMethodError.
Suggestions ?

This topic is locked and can not be replied to.