<?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: Setup shoulda and rcov for Rails 2.2.2</title>
	<atom:link href="http://lojic.com/blog/2009/02/26/setup-shoulda-and-rcov-for-rails-222/feed/" rel="self" type="application/rss+xml" />
	<link>http://lojic.com/blog/2009/02/26/setup-shoulda-and-rcov-for-rails-222/</link>
	<description></description>
	<lastBuildDate>Mon, 08 Mar 2010 01:40:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Badrah</title>
		<link>http://lojic.com/blog/2009/02/26/setup-shoulda-and-rcov-for-rails-222/comment-page-1/#comment-9861</link>
		<dc:creator>Badrah</dc:creator>
		<pubDate>Sat, 12 Dec 2009 14:16:47 +0000</pubDate>
		<guid isPermaLink="false">http://lojic.com/blog/?p=216#comment-9861</guid>
		<description>Thanks Brian for the quick tip .. It really helps.

One more adjustment to add, specially when u have models in namespaces which will result in test files in sub-directories under the test different paths (Unit and Functional).

I made these changes to paths in the task:

test/unit/**/*_test.rb
test/functional/**/*_test.rb
test/integration/**/*_test.rb


instead of 


test/unit/*_test.rb
test/functional/*_test.rb
test/integration/*_test.rb


This began when I&#039;ve noticed that RCov shows that some models and controllers are not well covered though I was sure they are properly covered. Then I discovered that all of these files are classes in namespaces with their test files in sub folders under the test/unit and test/functional.

This is also a problem with the &quot;shoulda:list&quot; task, as it skips such classes saying that they don&#039;t map to a class.</description>
		<content:encoded><![CDATA[<p>Thanks Brian for the quick tip .. It really helps.</p>
<p>One more adjustment to add, specially when u have models in namespaces which will result in test files in sub-directories under the test different paths (Unit and Functional).</p>
<p>I made these changes to paths in the task:</p>
<p>test/unit/**/*_test.rb<br />
test/functional/**/*_test.rb<br />
test/integration/**/*_test.rb</p>
<p>instead of </p>
<p>test/unit/*_test.rb<br />
test/functional/*_test.rb<br />
test/integration/*_test.rb</p>
<p>This began when I&#8217;ve noticed that RCov shows that some models and controllers are not well covered though I was sure they are properly covered. Then I discovered that all of these files are classes in namespaces with their test files in sub folders under the test/unit and test/functional.</p>
<p>This is also a problem with the &#8220;shoulda:list&#8221; task, as it skips such classes saying that they don&#8217;t map to a class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Adkins</title>
		<link>http://lojic.com/blog/2009/02/26/setup-shoulda-and-rcov-for-rails-222/comment-page-1/#comment-2614</link>
		<dc:creator>Brian Adkins</dc:creator>
		<pubDate>Thu, 02 Apr 2009 01:31:03 +0000</pubDate>
		<guid isPermaLink="false">http://lojic.com/blog/?p=216#comment-2614</guid>
		<description>Ken, it looks like the backslashes to escape the two inner &quot; didn&#039;t make the copy/paste from the file to the Wordpress editor - thanks. I&#039;ll insert them manually.</description>
		<content:encoded><![CDATA[<p>Ken, it looks like the backslashes to escape the two inner &#8221; didn&#8217;t make the copy/paste from the file to the Wordpress editor &#8211; thanks. I&#8217;ll insert them manually.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://lojic.com/blog/2009/02/26/setup-shoulda-and-rcov-for-rails-222/comment-page-1/#comment-2612</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Wed, 01 Apr 2009 22:36:19 +0000</pubDate>
		<guid isPermaLink="false">http://lojic.com/blog/?p=216#comment-2612</guid>
		<description>Are you sure everything is OK with the line that starts with &quot;rcov = &quot; in your Rakefile?  There seems to be a problem with the quotes (e.g., two &quot; marks at the end)?

Thanks, Ken</description>
		<content:encoded><![CDATA[<p>Are you sure everything is OK with the line that starts with &#8220;rcov = &#8221; in your Rakefile?  There seems to be a problem with the quotes (e.g., two &#8221; marks at the end)?</p>
<p>Thanks, Ken</p>
]]></content:encoded>
	</item>
</channel>
</rss>
