<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Using assert_select outside of the controller context</title>
	<link>http://ambethia.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fambethia.com%2F2007%2F10%2F11%2Fassert_select%2F&amp;seed_title=Using+assert_select+outside+of+the+controller+context</link>
	<description>The journal and personal website of Jason L Perry</description>
	<pubDate>Fri, 21 Nov 2008 16:59:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Jason Perry</title>
		<link>http://ambethia.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fambethia.com%2F2007%2F10%2F11%2Fassert_select%2F&amp;seed_title=Using+assert_select+outside+of+the+controller+context#comment-512</link>
		<dc:creator>Jason Perry</dc:creator>
		<pubDate>Thu, 11 Oct 2007 16:12:09 +0000</pubDate>
		<guid>http://ambethia.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fambethia.com%2F2007%2F10%2F11%2Fassert_select%2F&amp;seed_title=Using+assert_select+outside+of+the+controller+context#comment-512</guid>
		<description>Oh that's slick, and makes a little more sense than my round about way of doing it...</description>
		<content:encoded><![CDATA[<p>Oh that&#8217;s slick, and makes a little more sense than my round about way of doing it&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gavin Stark</title>
		<link>http://ambethia.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fambethia.com%2F2007%2F10%2F11%2Fassert_select%2F&amp;seed_title=Using+assert_select+outside+of+the+controller+context#comment-511</link>
		<dc:creator>Gavin Stark</dc:creator>
		<pubDate>Thu, 11 Oct 2007 15:47:52 +0000</pubDate>
		<guid>http://ambethia.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fambethia.com%2F2007%2F10%2F11%2Fassert_select%2F&amp;seed_title=Using+assert_select+outside+of+the+controller+context#comment-511</guid>
		<description>I also use this to assert_select when all I have is html.

test_helper.rb:

  def assert_select_from_html( html, *args, &#38;block )
    html_document = HTML::Document.new( html ).root
    assert_select( html_document, *args, &#38;block )
  end

Then I can write:

assert_select_from_html my_helper_method, "css.selector" do ...</description>
		<content:encoded><![CDATA[<p>I also use this to assert_select when all I have is html.</p>
<p>test_helper.rb:</p>
<p>  def assert_select_from_html( html, *args, &amp;block )<br />
    html_document = HTML::Document.new( html ).root<br />
    assert_select( html_document, *args, &amp;block )<br />
  end</p>
<p>Then I can write:</p>
<p>assert_select_from_html my_helper_method, &#8220;css.selector&#8221; do &#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
