<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kickass Labs &#187; invalid selector</title>
	<atom:link href="http://www.kickasslabs.com/tag/invalid-selector/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kickasslabs.com</link>
	<description>We &#9829; code.</description>
	<lastBuildDate>Wed, 28 Dec 2011 16:57:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Using assert_select to find an attribute that has square brackets in the value</title>
		<link>http://www.kickasslabs.com/2009/03/01/using-assert_select-to-find-an-attribute-that-has-square-brackets-in-the-value/</link>
		<comments>http://www.kickasslabs.com/2009/03/01/using-assert_select-to-find-an-attribute-that-has-square-brackets-in-the-value/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 19:31:58 +0000</pubDate>
		<dc:creator>gabe</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[assert_select]]></category>
		<category><![CDATA[invalid selector]]></category>

		<guid isPermaLink="false">http://www.kickasslabs.com/?p=194</guid>
		<description><![CDATA[Problem: assert_select 'input[name=model_name[field_name]]' gives ArgumentError: Invalid selector: ] Solution: assert_select 'input[name=?]', 'model_name[field_name]' Thanks to the Boston Ruby Group thread for the answer. Bonus: Here&#8217;s a helpful assert_select cheat sheet.]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong>: <code>assert_select 'input[name=model_name[field_name]]'</code> gives <code>ArgumentError: Invalid selector: ] </code></p>
<p><strong>Solution</strong>: <code>assert_select 'input[name=?]', 'model_name[field_name]' </code></p>
<p>Thanks to <a href="http://groups.google.com/group/boston-rubygroup/browse_thread/thread/47b9d0b3798a7858">the Boston Ruby Group thread</a> for the answer.</p>
<p><strong>Bonus</strong>: Here&#8217;s a helpful <a href="http://labnotes.org/svn/public/ruby/rails_plugins/assert_select/cheat/assert_select.html">assert_select cheat sheet</a>.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.kickasslabs.com%2F2009%2F03%2F01%2Fusing-assert_select-to-find-an-attribute-that-has-square-brackets-in-the-value%2F&amp;title=Using%20assert_select%20to%20find%20an%20attribute%20that%20has%20square%20brackets%20in%20the%20value" id="wpa2a_2"><img src="http://www.kickasslabs.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kickasslabs.com/2009/03/01/using-assert_select-to-find-an-attribute-that-has-square-brackets-in-the-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

