<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Relation from RailsConf Europe 2008, day 2</title>
	<atom:link href="http://szeryf.wordpress.com/2008/09/07/relation-from-railsconf-europe-2008-day-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://szeryf.wordpress.com/2008/09/07/relation-from-railsconf-europe-2008-day-2/</link>
	<description>The blog with the bug.</description>
	<lastBuildDate>Mon, 26 Oct 2009 20:00:20 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Roderick van Domburg</title>
		<link>http://szeryf.wordpress.com/2008/09/07/relation-from-railsconf-europe-2008-day-2/#comment-669</link>
		<dc:creator>Roderick van Domburg</dc:creator>
		<pubDate>Tue, 09 Sep 2008 12:36:45 +0000</pubDate>
		<guid isPermaLink="false">http://szeryf.wordpress.com/?p=94#comment-669</guid>
		<description>Thanks, I didn&#039;t know that about RSpec.</description>
		<content:encoded><![CDATA[<p>Thanks, I didn&#8217;t know that about RSpec.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: szeryf</title>
		<link>http://szeryf.wordpress.com/2008/09/07/relation-from-railsconf-europe-2008-day-2/#comment-668</link>
		<dc:creator>szeryf</dc:creator>
		<pubDate>Mon, 08 Sep 2008 14:42:31 +0000</pubDate>
		<guid isPermaLink="false">http://szeryf.wordpress.com/?p=94#comment-668</guid>
		<description>Roderick: firstly, thanks for the talk, it was one of those I benefited most from. 

About the helpers: we don&#039;t use them that much. Sure we have some handy functions in helper files but we try not to produce HTML with helpers (we use partials for this). 

On recent projects we use RSpec, which has no problems with testing helpers. If you have foo_helper, you just put its spec into spec/helpers/foo_helper_spec.rb and just test it. Although I&#039;m not a great fan of RSpec, this is clearly its advantage about Test::Unit.

In earlier projects, with Test::Unit, we created separate files like foo_helper_test.rb but we put them into controllers directory. Inside the test we just &#039;include FooHelper&#039; and test its methods. This works in most cases. Sometimes, if some functions are missing, you have to include some Rails files (the infamous link helper) or just stub those functions out. I know this is far from perfect, but not that hard either :)</description>
		<content:encoded><![CDATA[<p>Roderick: firstly, thanks for the talk, it was one of those I benefited most from. </p>
<p>About the helpers: we don&#8217;t use them that much. Sure we have some handy functions in helper files but we try not to produce HTML with helpers (we use partials for this). </p>
<p>On recent projects we use RSpec, which has no problems with testing helpers. If you have foo_helper, you just put its spec into spec/helpers/foo_helper_spec.rb and just test it. Although I&#8217;m not a great fan of RSpec, this is clearly its advantage about Test::Unit.</p>
<p>In earlier projects, with Test::Unit, we created separate files like foo_helper_test.rb but we put them into controllers directory. Inside the test we just &#8216;include FooHelper&#8217; and test its methods. This works in most cases. Sometimes, if some functions are missing, you have to include some Rails files (the infamous link helper) or just stub those functions out. I know this is far from perfect, but not that hard either :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roderick van Domburg</title>
		<link>http://szeryf.wordpress.com/2008/09/07/relation-from-railsconf-europe-2008-day-2/#comment-667</link>
		<dc:creator>Roderick van Domburg</dc:creator>
		<pubDate>Mon, 08 Sep 2008 14:19:32 +0000</pubDate>
		<guid isPermaLink="false">http://szeryf.wordpress.com/?p=94#comment-667</guid>
		<description>Thanks for the write-up about my software metrics talk! I wholly agree that doing genuine TDD and getting 100% from the start is the way to go. How do you fully cover your helpers though? That&#039;s the thing that we often have to try (too) hard to come to terms with.</description>
		<content:encoded><![CDATA[<p>Thanks for the write-up about my software metrics talk! I wholly agree that doing genuine TDD and getting 100% from the start is the way to go. How do you fully cover your helpers though? That&#8217;s the thing that we often have to try (too) hard to come to terms with.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
