# Integration tests and xhr

**URL:** <https://www.ruby-forum.com/t/integration-tests-and-xhr/87804>\
**Category:** Rails\
**Created:** [March 6, 2007, 1:40am UTC](https://www.ruby-forum.com/t/integration-tests-and-xhr/87804 "2007-03-06T01:40:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicholas\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/f17d59/32.png) [@Nicholas\_W](https://www.ruby-forum.com/u/Nicholas_W)\
**Post date:** [March 6, 2007, 1:40am UTC](https://www.ruby-forum.com/t/integration-tests-and-xhr/87804/1 "2007-03-06T01:40:22Z")

</div>

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 => foo.email, :username => foo.username, :subject =>

```

“[ISSUE #1] foo”,  
:body =\> “This is a test followup.”, :issue\_id =\> 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 ?

ngw
