Is anyone else experiencing the same issue, or does anyone know why my
assert_select_rjs blocks started failing in 1.2.4?
I have upgraded to 1.2.4 and my assert_select_rjs tests are still
working properly. I don’t know if I am using :replace_html in any of
the assertions though. Are those the only ones causing trouble?
Is anyone else experiencing the same issue, or does anyone know why my
assert_select_rjs blocks started failing in 1.2.4?
I have upgraded to 1.2.4 and my assert_select_rjs tests are still
working properly. I don’t know if I am using :replace_html in any of
the assertions though. Are those the only ones causing trouble?
I just tested it with a :replace and still got failures. It only fails
when you have assert_selects inside assert_select_rjs blocks. The
assert_select statements always fail.
I just tested it with a :replace and still got failures. It only fails
when you have assert_selects inside assert_select_rjs blocks. The
assert_select statements always fail.
I have upgraded to 1.2.4 and my assert_select_rjs tests are still
working properly. I don’t know if I am using :replace_html in any of
the assertions though. Are those the only ones causing trouble?
I just tested it with a :replace and still got failures. It only fails
when you have assert_selects inside assert_select_rjs blocks. The
assert_select statements always fail.
I dunno. I can definitely use assert_select in an assert_select_rjs
block under 1.2.4, so something else is going on.
I have upgraded to 1.2.4 and my assert_select_rjs tests are still
working properly. I don’t know if I am using :replace_html in any of
the assertions though. Are those the only ones causing trouble?
I just tested it with a :replace and still got failures. It only fails
when you have assert_selects inside assert_select_rjs blocks. The
assert_select statements always fail.
I dunno. I can definitely use assert_select in an assert_select_rjs
block under 1.2.4, so something else is going on.
Thanks for looking into it. I’ll try looking elsewhere for the problem.
I did notice though that when I do a puts @response.body in the test I
get the following:
Element.update(“replace_this”, “\074div class="foo"\076This is
replacement text\074/div\076”);
Is it normal for the < and > to be replaced by \074 and \076 ?
I just tested a puts on @response.body in 1.2.3 and the < and > are not
encoded with \074 and \076, so maybe this is another symptom of the
problem?
Just wondering if anyone on rails 1.2.4 could do a ‘puts @response.body’
on an AJAX response a functional test to see if the < and > show up or
if they are replaced by \074 and \076.
It would be greatly appreciated.
OK, I tried it. I see the angle brackets < and >. I don’t see the \074
and \076 stuff.
I did notice though that when I do a puts @response.body in the test I
get the following:
Element.update(“replace_this”, “\074div class=“foo”\076This is
replacement text\074/div\076”);
Is it normal for the < and > to be replaced by \074 and \076 ?
I just tested a puts on @response.body in 1.2.3 and the < and > are not
encoded with \074 and \076, so maybe this is another symptom of the
problem?
Just wondering if anyone on rails 1.2.4 could do a ‘puts @response.body’
on an AJAX response a functional test to see if the < and > show up or
if they are replaced by \074 and \076.
I just tested a puts on @response.body in 1.2.3 and the < and > are not
encoded with \074 and \076, so maybe this is another symptom of the
problem?
Just wondering if anyone on rails 1.2.4 could do a ‘puts @response.body’
on an AJAX response a functional test to see if the < and > show up or
if they are replaced by \074 and \076.
It would be greatly appreciated.
OK, I tried it. I see the angle brackets < and >. I don’t see the \074
and \076 stuff.
Thanks a million Bob! This gives me something to work off, hopefully I
can figure it out.
I just tested a puts on @response.body in 1.2.3 and the < and > are not
encoded with \074 and \076, so maybe this is another symptom of the
problem?
Just wondering if anyone on rails 1.2.4 could do a ‘puts @response.body’
on an AJAX response a functional test to see if the < and > show up or
if they are replaced by \074 and \076.
It would be greatly appreciated.
OK, I tried it. I see the angle brackets < and >. I don’t see the \074
and \076 stuff.
Thanks a million Bob! This gives me something to work off, hopefully I
can figure it out.
Thank you Bob! I was able to figure it out. One of my filters wasn’t
explicitly returning true (it was returning a nonfalse value).
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.