Topic: Functional testing and replace_html

Hi. I want to test an action (Rails) for correct page content update.

In a nutshell, we have new topic creation, there are two options of respons:
1. If success, returns js, which displays a new topic in the list.
2. In  case of validation failure returns js, which displays messages about the error that occurred.

The test should check for error validation.
The documentation indicated assert_select_rjs method for testing  such behavior.
Test fails with the following error:
No RJS statement that replaces or inserts HTML content.

Can anyone help me regarding this ?

Regards,
Anton Musiienko,
Software Engineer

Last edited by antomus (2012-01-06 06:49:30)