<?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: Testing in Rails: Part 3 &#8211; Unit Testing Ruby Classes (cont.)</title>
	<atom:link href="http://www.nullislove.com/2007/11/20/testing-in-rails-part-3-unit-testing-ruby-classes-cont/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nullislove.com/2007/11/20/testing-in-rails-part-3-unit-testing-ruby-classes-cont/</link>
	<description>Code for Coders</description>
	<lastBuildDate>Sat, 31 Dec 2011 17:28:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Kevin Skoglund</title>
		<link>http://www.nullislove.com/2007/11/20/testing-in-rails-part-3-unit-testing-ruby-classes-cont/comment-page-1/#comment-1266</link>
		<dc:creator>Kevin Skoglund</dc:creator>
		<pubDate>Thu, 28 Aug 2008 11:28:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.nullislove.com/2007/11/20/testing-in-rails-part-3-unit-testing-ruby-classes-cont/#comment-1266</guid>
		<description>@skg: With assert_raise you won&#039;t see the exception, assert_raise catches it.  You should only get a passed or failed test.  It sounds like your test passed.</description>
		<content:encoded><![CDATA[<p>@skg: With assert_raise you won&#8217;t see the exception, assert_raise catches it.  You should only get a passed or failed test.  It sounds like your test passed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: skg</title>
		<link>http://www.nullislove.com/2007/11/20/testing-in-rails-part-3-unit-testing-ruby-classes-cont/comment-page-1/#comment-1265</link>
		<dc:creator>skg</dc:creator>
		<pubDate>Thu, 28 Aug 2008 11:16:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.nullislove.com/2007/11/20/testing-in-rails-part-3-unit-testing-ruby-classes-cont/#comment-1265</guid>
		<description>Hi
       Very Nice Tutorial.Thanks for publishing this.One thing, when i tried
 assert_raise(NoMethodError) { new_car.wheels=6 }
    it does not give any exceptions.Is that what expected?But if give
 ret_val=assert_raise(NoMethodError) { new_car.wheels=6 }
 puts ret_val   then the result is 
Loaded suite car_test
Started
undefined method `wheels=&#039; for #
.F...
Finished in 0.030879 seconds.
  1) Failure:
test_colors(CarTest) [car_test.rb:57]:
 is not true.
5 tests, 27 assertions, 1 failures, 0 errors</description>
		<content:encoded><![CDATA[<p>Hi<br />
       Very Nice Tutorial.Thanks for publishing this.One thing, when i tried<br />
 assert_raise(NoMethodError) { new_car.wheels=6 }<br />
    it does not give any exceptions.Is that what expected?But if give<br />
 ret_val=assert_raise(NoMethodError) { new_car.wheels=6 }<br />
 puts ret_val   then the result is<br />
Loaded suite car_test<br />
Started<br />
undefined method `wheels=&#8217; for #<br />
.F&#8230;<br />
Finished in 0.030879 seconds.<br />
  1) Failure:<br />
test_colors(CarTest) [car_test.rb:57]:<br />
 is not true.<br />
5 tests, 27 assertions, 1 failures, 0 errors</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard OnRails</title>
		<link>http://www.nullislove.com/2007/11/20/testing-in-rails-part-3-unit-testing-ruby-classes-cont/comment-page-1/#comment-1208</link>
		<dc:creator>Richard OnRails</dc:creator>
		<pubDate>Fri, 11 Jul 2008 02:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.nullislove.com/2007/11/20/testing-in-rails-part-3-unit-testing-ruby-classes-cont/#comment-1208</guid>
		<description>Hi Kevin,

This is another great chapter.

I had to wonder when I encountered: 
&quot;assert_equal([&#039;blue&#039;, &#039;black&#039;, &#039;red&#039;, &#039;green&#039;], Car.colors)&quot;,
whether Array comparisons are order sensitive.

I&#039;m sure you know they are, and that Sets are the easy solution.  But I imagine you thought that introducing Sets would make this tutorial unnecessarily difficult for beginners.

Best wishes,
Richard</description>
		<content:encoded><![CDATA[<p>Hi Kevin,</p>
<p>This is another great chapter.</p>
<p>I had to wonder when I encountered:<br />
&#8220;assert_equal(['blue', 'black', 'red', 'green'], Car.colors)&#8221;,<br />
whether Array comparisons are order sensitive.</p>
<p>I&#8217;m sure you know they are, and that Sets are the easy solution.  But I imagine you thought that introducing Sets would make this tutorial unnecessarily difficult for beginners.</p>
<p>Best wishes,<br />
Richard</p>
]]></content:encoded>
	</item>
</channel>
</rss>

