I just updated to 1.2.4 and now all my assert_select_rjs blocks are failing. For example: assert_select_rjs :replace_html, "test" do assert_select ".foo" #fails end fails with something like this for the rjs page.replace_html "test", ''<div class="foo">Foo</div>'' Is anyone else experiencing the same issue, or does anyone know why my assert_select_rjs blocks started failing in 1.2.4? Any help would be greatly appreciated. Thanks! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 10/8/07, Raymond O''Connor <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > I just updated to 1.2.4 and now all my assert_select_rjs blocks are > failing. > > For example: > > assert_select_rjs :replace_html, "test" do > assert_select ".foo" #fails > end > > fails with something like this for the rjs > > page.replace_html "test", ''<div class="foo">Foo</div>'' > > 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? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Bob Showalter wrote:> On 10/8/07, Raymond O''Connor <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> fails with something like this for the rjs >> >> page.replace_html "test", ''<div class="foo">Foo</div>'' >> >> 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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Raymond O''Connor wrote:> 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.Try assert_javascript. -- Phlip http://www.oreilly.com/catalog/9780596510657/ ^ assert_xpath --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 10/9/07, Raymond O''Connor <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Bob Showalter wrote: > > On 10/8/07, Raymond O''Connor <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > >> fails with something like this for the rjs > >> > >> page.replace_html "test", ''<div class="foo">Foo</div>'' > >> > >> 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 dunno. I can definitely use assert_select in an assert_select_rjs block under 1.2.4, so something else is going on. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Bob Showalter wrote:> On 10/9/07, Raymond O''Connor <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> > 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 ? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> 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? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Raymond O''Connor wrote:>> 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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 10/10/07, Raymond O''Connor <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Raymond O''Connor wrote: > >> 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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Bob Showalter wrote:> On 10/10/07, Raymond O''Connor <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> > 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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Raymond O''Connor wrote:> Bob Showalter wrote: >> On 10/10/07, Raymond O''Connor <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >>> > 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). -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---