Functional Testing - page actions

after the assert_response, how do I test that the page is deleting the job / div? I created some entries and ran this manually and it
worked, but I don't know what the assert is for the test.

There's assert_select_rjs and i've also used a plugin called arts Fred

Frederick Cheung wrote:

There's assert_select_rjs and i've also used a plugin called arts Fred

Forgot to say thank you eariler, that was exactly what I was looking for.

Course heres a similar but new question -

Now I've gotten more ajax and javascript calls going on. On one page there is a js function to remove an item from one list box, and a function to add the item to a second list box.

render :update do |page|   page.call "addNewElement", 'listbox_a', 'id', 'text', 'value'   page.call "removeSelectedElemet", 'listbox_b', 'id', 'value' end

where 'value' is the element id I'm working with.

The xhr call goes off without a hitch, but I'm stumped how to write the functional test to make sure it works - it runs fine in a browser.

I originally tried the assert_select_rjs but since there isn't a insert or remove call in there, but a call to one of my own functions I'm not sure what function I should be using.

In this same vein, how would you test that an alert box was fired?