<?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: Readable test names in Rails 2.1</title>
	<atom:link href="http://izumi.plan99.net/blog/index.php/2008/07/04/readable-test-names-in-rails-21/feed/" rel="self" type="application/rss+xml" />
	<link>http://izumi.plan99.net/blog/index.php/2008/07/04/readable-test-names-in-rails-21/</link>
	<description>Ecchi nanowa ikenai to omoimasu</description>
	<lastBuildDate>Tue, 03 Jan 2012 16:14:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Hongli</title>
		<link>http://izumi.plan99.net/blog/index.php/2008/07/04/readable-test-names-in-rails-21/comment-page-1/#comment-9298</link>
		<dc:creator>Hongli</dc:creator>
		<pubDate>Wed, 09 Jul 2008 17:21:39 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/index.php/2008/07/04/readable-test-names-in-rails-21/#comment-9298</guid>
		<description>I didn&#039;t feel like installing RSpec. The Test::Unit stubs had already been created so I used them instead.</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t feel like installing RSpec. The Test::Unit stubs had already been created so I used them instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pratik</title>
		<link>http://izumi.plan99.net/blog/index.php/2008/07/04/readable-test-names-in-rails-21/comment-page-1/#comment-9297</link>
		<dc:creator>Pratik</dc:creator>
		<pubDate>Wed, 09 Jul 2008 17:14:22 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/index.php/2008/07/04/readable-test-names-in-rails-21/#comment-9297</guid>
		<description>Not that I have any love for RSpec, but how hard can it be to alias :it to :should, :test, :shit, :whatever ? I don&#039;t understand the reason to choose your testing library based on the it/test/should/etc. keyword. I think there are better parameters for taking that decision.</description>
		<content:encoded><![CDATA[<p>Not that I have any love for RSpec, but how hard can it be to alias :it to :should, :test, :shit, :whatever ? I don&#8217;t understand the reason to choose your testing library based on the it/test/should/etc. keyword. I think there are better parameters for taking that decision.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RSL</title>
		<link>http://izumi.plan99.net/blog/index.php/2008/07/04/readable-test-names-in-rails-21/comment-page-1/#comment-9292</link>
		<dc:creator>RSL</dc:creator>
		<pubDate>Sun, 06 Jul 2008 12:46:47 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/index.php/2008/07/04/readable-test-names-in-rails-21/#comment-9292</guid>
		<description>@ Hongli. I see but I&#039;m not sure I agree. In RSpec, you wouldn&#039;t be specing the message getting sent in the Mailman class per se so much as the Mailman class sending the mail. [Yes, it&#039;s a semantic difference and that&#039;s somewhat a big deal in RSpec, viz Sapir-Whorf etc.]. Amending my spec to reflect this...

test “a message with a password protected channel as recipient will be delivered to a user’s mailbox, if that user is subscribed to said channel” # =&gt; it “should send message to user if channel is password protected and user is subscribed to channel”

I don&#039;t want to sound like I&#039;m arguing to be persnickety. I only mean to point out that RSpec is more than just &quot;clever&quot; phrasing of Test::Unit ideas and that the decision to use it or not shouldn&#039;t just be made on naming conventions. :)</description>
		<content:encoded><![CDATA[<p>@ Hongli. I see but I&#8217;m not sure I agree. In RSpec, you wouldn&#8217;t be specing the message getting sent in the Mailman class per se so much as the Mailman class sending the mail. [Yes, it's a semantic difference and that's somewhat a big deal in RSpec, viz Sapir-Whorf etc.]. Amending my spec to reflect this&#8230;</p>
<p>test “a message with a password protected channel as recipient will be delivered to a user’s mailbox, if that user is subscribed to said channel” # =&gt; it “should send message to user if channel is password protected and user is subscribed to channel”</p>
<p>I don&#8217;t want to sound like I&#8217;m arguing to be persnickety. I only mean to point out that RSpec is more than just &#8220;clever&#8221; phrasing of Test::Unit ideas and that the decision to use it or not shouldn&#8217;t just be made on naming conventions. <img src='http://izumi.plan99.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aleksandr</title>
		<link>http://izumi.plan99.net/blog/index.php/2008/07/04/readable-test-names-in-rails-21/comment-page-1/#comment-9287</link>
		<dc:creator>Aleksandr</dc:creator>
		<pubDate>Sun, 06 Jul 2008 10:59:01 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/index.php/2008/07/04/readable-test-names-in-rails-21/#comment-9287</guid>
		<description>Nice trick. But I don&#039;t like that IDEs don&#039;t recognize these test methods anymore.</description>
		<content:encoded><![CDATA[<p>Nice trick. But I don&#8217;t like that IDEs don&#8217;t recognize these test methods anymore.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chu Yeow</title>
		<link>http://izumi.plan99.net/blog/index.php/2008/07/04/readable-test-names-in-rails-21/comment-page-1/#comment-9286</link>
		<dc:creator>Chu Yeow</dc:creator>
		<pubDate>Sun, 06 Jul 2008 05:17:30 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/index.php/2008/07/04/readable-test-names-in-rails-21/#comment-9286</guid>
		<description>Hehe Hongli, I liked Spice and Wolf but kinda dropped Gunslinger Girl 2 :)

Btw, if you aren&#039;t using it yet, MyAnimeList is kick-ass for keeping track of anime (my list is at http://myanimelist.net/animelist/chuyeow).</description>
		<content:encoded><![CDATA[<p>Hehe Hongli, I liked Spice and Wolf but kinda dropped Gunslinger Girl 2 <img src='http://izumi.plan99.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Btw, if you aren&#8217;t using it yet, MyAnimeList is kick-ass for keeping track of anime (my list is at <a href="http://myanimelist.net/animelist/chuyeow" rel="nofollow">http://myanimelist.net/animelist/chuyeow</a>).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hongli</title>
		<link>http://izumi.plan99.net/blog/index.php/2008/07/04/readable-test-names-in-rails-21/comment-page-1/#comment-9284</link>
		<dc:creator>Hongli</dc:creator>
		<pubDate>Sat, 05 Jul 2008 20:49:30 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/index.php/2008/07/04/readable-test-names-in-rails-21/#comment-9284</guid>
		<description>RSL: the problem is that &quot;message&quot; is not the subject of the test description: the Mailman class is. So &quot;it&quot; would be totally inappropriate.</description>
		<content:encoded><![CDATA[<p>RSL: the problem is that &#8220;message&#8221; is not the subject of the test description: the Mailman class is. So &#8220;it&#8221; would be totally inappropriate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Waite</title>
		<link>http://izumi.plan99.net/blog/index.php/2008/07/04/readable-test-names-in-rails-21/comment-page-1/#comment-9283</link>
		<dc:creator>Andy Waite</dc:creator>
		<pubDate>Sat, 05 Jul 2008 15:49:50 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/index.php/2008/07/04/readable-test-names-in-rails-21/#comment-9283</guid>
		<description>This (and Shoulda) certainly make things easier on the eyes, but long test names are still awkward to read and comprehend. And if you have a few in the one file that only vary by a word or two, it&#039;s easy to confuse them and edit the wrong method.

Shoulda&#039;s support for contexts might be helpful for this, but I haven&#039;t dug into it much yet.</description>
		<content:encoded><![CDATA[<p>This (and Shoulda) certainly make things easier on the eyes, but long test names are still awkward to read and comprehend. And if you have a few in the one file that only vary by a word or two, it&#8217;s easy to confuse them and edit the wrong method.</p>
<p>Shoulda&#8217;s support for contexts might be helpful for this, but I haven&#8217;t dug into it much yet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RSL</title>
		<link>http://izumi.plan99.net/blog/index.php/2008/07/04/readable-test-names-in-rails-21/comment-page-1/#comment-9282</link>
		<dc:creator>RSL</dc:creator>
		<pubDate>Sat, 05 Jul 2008 11:38:24 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/index.php/2008/07/04/readable-test-names-in-rails-21/#comment-9282</guid>
		<description>Not that I&#039;m pushing the RSpec crack [well, okay mebbe a little] but I don&#039;t see how any of the test names in your code wouldn&#039;t be shorter using RSpec&#039;s &quot;it&quot; naming standard.

test &quot;an anime should be invalid if any of its characters are invalid&quot; # =&gt; it &quot;should be invalid if it has invalid characters&quot;
test &quot;a message with a password protected channel as recipient will be delivered to a user’s mailbox, if that user is subscribed to said channel&quot; # =&gt; it &quot;should get delivered to the user if channel is password protected and user is subscribed to channel&quot;

That last one could be even shorter if another test shares the conditionality of the channel being password protected because it could be moved to the describe block. There&#039;s plenty of reasons to not use RSpec though. I just don&#039;t think the naming of the tests is one of them. YMMV. :)</description>
		<content:encoded><![CDATA[<p>Not that I&#8217;m pushing the RSpec crack [well, okay mebbe a little] but I don&#8217;t see how any of the test names in your code wouldn&#8217;t be shorter using RSpec&#8217;s &#8220;it&#8221; naming standard.</p>
<p>test &#8220;an anime should be invalid if any of its characters are invalid&#8221; # =&gt; it &#8220;should be invalid if it has invalid characters&#8221;<br />
test &#8220;a message with a password protected channel as recipient will be delivered to a user’s mailbox, if that user is subscribed to said channel&#8221; # =&gt; it &#8220;should get delivered to the user if channel is password protected and user is subscribed to channel&#8221;</p>
<p>That last one could be even shorter if another test shares the conditionality of the channel being password protected because it could be moved to the describe block. There&#8217;s plenty of reasons to not use RSpec though. I just don&#8217;t think the naming of the tests is one of them. YMMV. <img src='http://izumi.plan99.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony Eden</title>
		<link>http://izumi.plan99.net/blog/index.php/2008/07/04/readable-test-names-in-rails-21/comment-page-1/#comment-9281</link>
		<dc:creator>Anthony Eden</dc:creator>
		<pubDate>Sat, 05 Jul 2008 08:19:28 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/index.php/2008/07/04/readable-test-names-in-rails-21/#comment-9281</guid>
		<description>+1 for Shoulda.</description>
		<content:encoded><![CDATA[<p>+1 for Shoulda.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua</title>
		<link>http://izumi.plan99.net/blog/index.php/2008/07/04/readable-test-names-in-rails-21/comment-page-1/#comment-9280</link>
		<dc:creator>Joshua</dc:creator>
		<pubDate>Sat, 05 Jul 2008 07:31:15 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/index.php/2008/07/04/readable-test-names-in-rails-21/#comment-9280</guid>
		<description>This has been available (along with nested context blocks) via a plugin called Shoulda (http://www.thoughtbot.com/projects/shoulda) for some time now. I&#039;m not sure if the test naming would be to your liking, though.</description>
		<content:encoded><![CDATA[<p>This has been available (along with nested context blocks) via a plugin called Shoulda (<a href="http://www.thoughtbot.com/projects/shoulda" rel="nofollow">http://www.thoughtbot.com/projects/shoulda</a>) for some time now. I&#8217;m not sure if the test naming would be to your liking, though.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

