On Dec 10, 2008, at 10:27 AM, Andrei E. wrote:
I tend not to use rjs much, but what I suspect you are looking for is
might look sort of like:
Does this sound like what you are looking for?
Thank you for your help. I still need a bit of help on calling have_text
I tried your version and it failed. Then I tried a couple of variations
response.should have_text(/$(‘Form’).reset(“tag_form”)/) but I got
expected /$(‘Form’).reset(“tag_form”)/, got
response.should have_text(/Form.reset(“tag_form”)/) That also failed.
What you are looking for is the string:
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
So, this should work:
Hope this works for you. Oh, and you might want to branch out and make