Hi,

Oh, I should have thought of that. Thanks a lot.

I'm growing used to the assert_xhtml syntax, lol, so I've just been using
that. Thank you though for fixing the be_html_with syntax.

Brandon

> -----Original Message-----
> From: rspec-users-boun...@rubyforge.org [mailto:rspec-users-
> boun...@rubyforge.org] On Behalf Of Phlip
> Sent: Wednesday, April 08, 2009 11:54 PM
> To: rspec-users@rubyforge.org
> Subject: Re: [rspec-users] Testing helpers that accept a block
> 
> >         assert_xhtml output do
> >           div.error do
> >             p 'Block'
> >           end
> >         end
> 
> Nokogiri has some "easter eggs" in its ambitious HTML::Builder system.
> One of
> them is only HTML tags not already recognized as methods can get turned
> into
> HTML tags. The usual .method_missing() abuse.
> 
> The fix is:
> 
>          assert_xhtml output do
>            div.error do
>              p! 'Block'
>            end
>          end
> 
> (Also .be_html_with might work by now... 0.4.9?)
> 
> Aaron P. is pondering this issue even now in his subconscious, but I
> only ought
> to feed him one feature request at a time and a couple others are ahead
> in the
> queue, so my ! trick has to work for the near future...
> 
> _______________________________________________
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to