<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Assert_tag With Two Siblings In Rails</title>
	<atom:link href="http://www.nomachetejuggling.com/2008/04/28/assert_tag-with-two-siblings-in-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nomachetejuggling.com/2008/04/28/assert_tag-with-two-siblings-in-rails/</link>
	<description>How a random programmer views the world.</description>
	<pubDate>Thu, 28 Aug 2008 04:22:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Tamer Salama</title>
		<link>http://www.nomachetejuggling.com/2008/04/28/assert_tag-with-two-siblings-in-rails/#comment-28129</link>
		<dc:creator>Tamer Salama</dc:creator>
		<pubDate>Tue, 10 Jun 2008 23:46:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.nomachetejuggling.com/?p=126#comment-28129</guid>
		<description>I believe you can use the :before, and :after hashes to test a certain number of occurrences.


assert_tag :tag=&#62;"element", 
           :before =&#62; {
               :tag =&#62; "element",
               :before =&#62; {
                  :tag =&#62; "element"
                }
           }

would assert you're returning 3 element tags

I know, it's ugly.

Thanks for the pointer.</description>
		<content:encoded><![CDATA[<p>I believe you can use the :before, and :after hashes to test a certain number of occurrences.</p>
<p>assert_tag :tag=&gt;&#8221;element&#8221;,<br />
           :before =&gt; {<br />
               :tag =&gt; &#8220;element&#8221;,<br />
               :before =&gt; {<br />
                  :tag =&gt; &#8220;element&#8221;<br />
                }<br />
           }</p>
<p>would assert you&#8217;re returning 3 element tags</p>
<p>I know, it&#8217;s ugly.</p>
<p>Thanks for the pointer.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
