<?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 plugin for Rails</title>
	<atom:link href="http://labnotes.org/2006/07/03/assert_select-plugin-for-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://labnotes.org/2006/07/03/assert_select-plugin-for-rails/</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: Assertions for Synergy/DE -- Chip&#8217;s Tips for Developers</title>
		<link>http://labnotes.org/2006/07/03/assert_select-plugin-for-rails/comment-page-1/#comment-140878</link>
		<dc:creator>Assertions for Synergy/DE -- Chip&#8217;s Tips for Developers</dc:creator>
		<pubDate>Sat, 19 Jul 2008 23:15:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2006/07/03/assert_select-plugin-for-rails/#comment-140878</guid>
		<description>[...] would also be useful to develop something like Assaf&#8217;s assert_select for user interfaces, but that will take quite a bit of thought for [...]</description>
		<content:encoded><![CDATA[<p>[...] would also be useful to develop something like Assaf&#8217;s assert_select for user interfaces, but that will take quite a bit of thought for [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SDR</title>
		<link>http://labnotes.org/2006/07/03/assert_select-plugin-for-rails/comment-page-1/#comment-140868</link>
		<dc:creator>SDR</dc:creator>
		<pubDate>Fri, 18 Jul 2008 19:27:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2006/07/03/assert_select-plugin-for-rails/#comment-140868</guid>
		<description>Its ok ...  i got it !</description>
		<content:encoded><![CDATA[<p>Its ok &#8230;  i got it !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SDR</title>
		<link>http://labnotes.org/2006/07/03/assert_select-plugin-for-rails/comment-page-1/#comment-140865</link>
		<dc:creator>SDR</dc:creator>
		<pubDate>Fri, 18 Jul 2008 14:15:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2006/07/03/assert_select-plugin-for-rails/#comment-140865</guid>
		<description>Hi im really a newbie.. cud u please tell me how to install the assert_select plugin if i downloaded the .rb file to my computer.

F:\InstantRails-1.3a-win\InstantRails\ruby\lib\ruby\gems\1.8\gems\actionpack-1.12.1\lib\action_controller 

should i add the method in the test process ???</description>
		<content:encoded><![CDATA[<p>Hi im really a newbie.. cud u please tell me how to install the assert_select plugin if i downloaded the .rb file to my computer.</p>
<p>F:\InstantRails-1.3a-win\InstantRails\ruby\lib\ruby\gems\1.8\gems\actionpack-1.12.1\lib\action_controller </p>
<p>should i add the method in the test process ???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Assaf</title>
		<link>http://labnotes.org/2006/07/03/assert_select-plugin-for-rails/comment-page-1/#comment-15988</link>
		<dc:creator>Assaf</dc:creator>
		<pubDate>Wed, 04 Oct 2006 18:49:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2006/07/03/assert_select-plugin-for-rails/#comment-15988</guid>
		<description>Joe,

Sorry for the late reply, I&#039;m working on another patch and I&#039;ll include integration tests in it.</description>
		<content:encoded><![CDATA[<p>Joe,</p>
<p>Sorry for the late reply, I&#8217;m working on another patch and I&#8217;ll include integration tests in it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Assaf</title>
		<link>http://labnotes.org/2006/07/03/assert_select-plugin-for-rails/comment-page-1/#comment-14909</link>
		<dc:creator>Assaf</dc:creator>
		<pubDate>Fri, 29 Sep 2006 16:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2006/07/03/assert_select-plugin-for-rails/#comment-14909</guid>
		<description>AnÃ­bal,

Thanks, I fixed the typo. I also found a way to wrap the long text so it doesn&#039;t truncate:

&lt;a href=&quot;http://www.longren.org/2006/09/27/wrapping-text-inside-pre-tags/&quot; rel=&quot;nofollow&quot;&gt;http://www.longren.org/2006/09/27/wrapping-text-inside-pre-tags/&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>AnÃ­bal,</p>
<p>Thanks, I fixed the typo. I also found a way to wrap the long text so it doesn&#8217;t truncate:</p>
<p><a href="http://www.longren.org/2006/09/27/wrapping-text-inside-pre-tags/" rel="nofollow">http://www.longren.org/2006/09/27/wrapping-text-inside-pre-tags/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AnÃ­bal Rojas</title>
		<link>http://labnotes.org/2006/07/03/assert_select-plugin-for-rails/comment-page-1/#comment-14804</link>
		<dc:creator>AnÃ­bal Rojas</dc:creator>
		<pubDate>Fri, 29 Sep 2006 08:57:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2006/07/03/assert_select-plugin-for-rails/#comment-14804</guid>
		<description>Works like a charm but in Firefox (1.5.0.7) the code with the plugin installation is rendered truncated, and the folder should be script/plugin and not script/plugins.</description>
		<content:encoded><![CDATA[<p>Works like a charm but in Firefox (1.5.0.7) the code with the plugin installation is rendered truncated, and the folder should be script/plugin and not script/plugins.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Assaf</title>
		<link>http://labnotes.org/2006/07/03/assert_select-plugin-for-rails/comment-page-1/#comment-14198</link>
		<dc:creator>Assaf</dc:creator>
		<pubDate>Wed, 27 Sep 2006 15:32:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2006/07/03/assert_select-plugin-for-rails/#comment-14198</guid>
		<description>ctagg,

There are several options for processing invalid HTML, including Tidy, Hpricot and Rubyfulsoup, all of which can clean it up.

With scrAPI, I use Tidy to clean up the HTML before processing it, and it uses the same engine as assert_select. So you can look at the code here:
&lt;a href=&quot;http://labnotes.org/svn/public/ruby/scrapi/lib/scraper/reader.rb&quot; rel=&quot;nofollow&quot;&gt;http://labnotes.org/svn/public/ruby/scrapi/lib/scraper/reader.rb&lt;/a&gt;

The &lt;code&gt;parse_page&lt;/code&gt; method can take &lt;code&gt;html_document&lt;/code&gt; and give you back an HTML node that you can pass to &lt;code&gt;assert_select&lt;/code&gt; as the first argument.</description>
		<content:encoded><![CDATA[<p>ctagg,</p>
<p>There are several options for processing invalid HTML, including Tidy, Hpricot and Rubyfulsoup, all of which can clean it up.</p>
<p>With scrAPI, I use Tidy to clean up the HTML before processing it, and it uses the same engine as assert_select. So you can look at the code here:<br />
<a href="http://labnotes.org/svn/public/ruby/scrapi/lib/scraper/reader.rb" rel="nofollow">http://labnotes.org/svn/public/ruby/scrapi/lib/scraper/reader.rb</a></p>
<p>The <code>parse_page</code> method can take <code>html_document</code> and give you back an HTML node that you can pass to <code>assert_select</code> as the first argument.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ctagg</title>
		<link>http://labnotes.org/2006/07/03/assert_select-plugin-for-rails/comment-page-1/#comment-14153</link>
		<dc:creator>ctagg</dc:creator>
		<pubDate>Wed, 27 Sep 2006 11:46:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2006/07/03/assert_select-plugin-for-rails/#comment-14153</guid>
		<description>Just tried this, but it&#039;s having some parsing my response. I&#039;m using Google Maps (via ym4r_gm, for what it&#039;s worth), and there&#039;s a load of HTML in the  where the info_windows are defined, including some divs.  Obviously they&#039;re not valid HTML -- the W3c validator doesn&#039;t like the VML hack for IE, apart from anything else -- but not sure of a way around that. Suspect I&#039;ll have to live with them being unvalid, but would be nice to be able to use assert_select. I&#039;m using hpricot_test_helper at the moment (which is pretty good), but what with assert_select going into core...</description>
		<content:encoded><![CDATA[<p>Just tried this, but it&#8217;s having some parsing my response. I&#8217;m using Google Maps (via ym4r_gm, for what it&#8217;s worth), and there&#8217;s a load of HTML in the  where the info_windows are defined, including some divs.  Obviously they&#8217;re not valid HTML &#8212; the W3c validator doesn&#8217;t like the VML hack for IE, apart from anything else &#8212; but not sure of a way around that. Suspect I&#8217;ll have to live with them being unvalid, but would be nice to be able to use assert_select. I&#8217;m using hpricot_test_helper at the moment (which is pretty good), but what with assert_select going into core&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://labnotes.org/2006/07/03/assert_select-plugin-for-rails/comment-page-1/#comment-13500</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Sat, 23 Sep 2006 23:10:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2006/07/03/assert_select-plugin-for-rails/#comment-13500</guid>
		<description>Assaf,

I tried using it, however I get an error... Maybe you could try it on your end to see if it&#039;s something that could be easily changed so it works with integration tests...  Here&#039;s the error I get in case this sheds any light:

NoMethodError: You have a nil object when you didn&#039;t expect it!
The error occured while evaluating nil.body
    /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/test_process.rb:419:in `html_document&#039;
    /Users/joe/dev/rails/quikauctions/stable1.0/config/../vendor/plugins/assert_select/lib/assert_select.rb:141:in `assert_select&#039;
    /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/integration.rb:523:in `method_missing&#039;
    test/integration/calendar_test.rb:74:in `test_gateway_change_clears_calendar&#039;
    /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/integration.rb:431:in `run&#039;</description>
		<content:encoded><![CDATA[<p>Assaf,</p>
<p>I tried using it, however I get an error&#8230; Maybe you could try it on your end to see if it&#8217;s something that could be easily changed so it works with integration tests&#8230;  Here&#8217;s the error I get in case this sheds any light:</p>
<p>NoMethodError: You have a nil object when you didn&#8217;t expect it!<br />
The error occured while evaluating nil.body<br />
    /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/test_process.rb:419:in `html_document&#8217;<br />
    /Users/joe/dev/rails/quikauctions/stable1.0/config/../vendor/plugins/assert_select/lib/assert_select.rb:141:in `assert_select&#8217;<br />
    /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/integration.rb:523:in `method_missing&#8217;<br />
    test/integration/calendar_test.rb:74:in `test_gateway_change_clears_calendar&#8217;<br />
    /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/integration.rb:431:in `run&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Assaf</title>
		<link>http://labnotes.org/2006/07/03/assert_select-plugin-for-rails/comment-page-1/#comment-13337</link>
		<dc:creator>Assaf</dc:creator>
		<pubDate>Sat, 23 Sep 2006 05:21:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2006/07/03/assert_select-plugin-for-rails/#comment-13337</guid>
		<description>Joe,

Good question. I haven&#039;t used integration tests yet, but from what I know the get/post will return a response body, so it will work with assert_select.</description>
		<content:encoded><![CDATA[<p>Joe,</p>
<p>Good question. I haven&#8217;t used integration tests yet, but from what I know the get/post will return a response body, so it will work with assert_select.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

