<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: assert_select: Rails core and handling lists and tables</title>
	<atom:link href="http://labnotes.org/2006/07/30/assert_select-rails-core-and-handling-lists-and-tables/feed/" rel="self" type="application/rss+xml" />
	<link>http://labnotes.org/2006/07/30/assert_select-rails-core-and-handling-lists-and-tables/</link>
	<description></description>
	<lastBuildDate>Sun, 15 Jan 2012 21:29:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Assaf</title>
		<link>http://labnotes.org/2006/07/30/assert_select-rails-core-and-handling-lists-and-tables/comment-page-1/#comment-7762</link>
		<dc:creator>Assaf</dc:creator>
		<pubDate>Mon, 31 Jul 2006 16:41:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2006/07/30/assert_select-rails-core-and-handling-lists-and-tables/#comment-7762</guid>
		<description>Kevin,

Just like ActiveRecord conditions, you use question mark (?) to substitute and then pass a value in the assert_select arguments list. Values are read in the order in which they appear in the selector.

You can use substitution for ID, class name, attribute value or any of the values uses in pseudo classes.

For example:

assert_select &quot;div#? a[href=?]&quot;, /id-\d+/, url_for(:action=&gt;&quot;index&quot;)

It will match the ID attribute of each div based on the pattern id-nnnn, and will match the links that point to the URL for the action &quot;index&quot;.</description>
		<content:encoded><![CDATA[<p>Kevin,</p>
<p>Just like ActiveRecord conditions, you use question mark (?) to substitute and then pass a value in the assert_select arguments list. Values are read in the order in which they appear in the selector.</p>
<p>You can use substitution for ID, class name, attribute value or any of the values uses in pseudo classes.</p>
<p>For example:</p>
<p>assert_select &#8220;div#? a[href=?]&#8220;, /id-\d+/, url_for(:action=>&#8221;index&#8221;)</p>
<p>It will match the ID attribute of each div based on the pattern id-nnnn, and will match the links that point to the URL for the action &#8220;index&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Clark</title>
		<link>http://labnotes.org/2006/07/30/assert_select-rails-core-and-handling-lists-and-tables/comment-page-1/#comment-7761</link>
		<dc:creator>Kevin Clark</dc:creator>
		<pubDate>Mon, 31 Jul 2006 16:31:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2006/07/30/assert_select-rails-core-and-handling-lists-and-tables/#comment-7761</guid>
		<description>This is much better.. how does the ? substitution work exactly?</description>
		<content:encoded><![CDATA[<p>This is much better.. how does the ? substitution work exactly?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Labnotes &#187; Blog Archive &#187; assert_select plugin for Rails</title>
		<link>http://labnotes.org/2006/07/30/assert_select-rails-core-and-handling-lists-and-tables/comment-page-1/#comment-7746</link>
		<dc:creator>Labnotes &#187; Blog Archive &#187; assert_select plugin for Rails</dc:creator>
		<pubDate>Mon, 31 Jul 2006 06:59:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2006/07/30/assert_select-rails-core-and-handling-lists-and-tables/#comment-7746</guid>
		<description>[...] Update: The new release of assert_select includes support for CSS pseudo classes (nth-child, first-child, empty). More details here. It also supports nested assertions for dealing with lists, tables and forms. Some examples here. I updated this post to use nested asserts. [...]</description>
		<content:encoded><![CDATA[<p>[...] Update: The new release of assert_select includes support for CSS pseudo classes (nth-child, first-child, empty). More details here. It also supports nested assertions for dealing with lists, tables and forms. Some examples here. I updated this post to use nested asserts. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

