What you are looking for is the string:
Form.reset("tag_form")
Ignore the escaping backslashes in the output from the matcher. To
tell have_text that it can appear anyplace in the body of the
response, use the regex /Form.reset("tag_form")/ in your call to
have_text.
So, this should work
Thank you for your help. I still need a bit of help on calling have_text
correctly.
I tried your version and it failed. Then I tried a couple of variations of
this:
response.should have_text(/$('Form').reset(\"tag_form\")/) but I got this
error message:
expected /$('Form').reset(\"tag_form\")/,
On Dec 10, 2008, at 10:27 AM, Andrei Erdoss wrote:
Hello,
I couldn't find much info on this.
How do you rspec this: page.form.reset("form")
I looked in the have_rjs source code and I can't find anything on
form reset.
Thanks,
--
Andrei
I tend not to use rjs much, but what I suspect you
Hello,
>
> I couldn't find much info on this.
>
> How do you rspec this: page.form.reset("form")
>
> I looked in the have_rjs source code and I can't find anything on form
> reset.
>
> Thanks,
>
> --
> Andrei
>
___
rspec-users mailing list
rspec-users@ru