<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Virtuous Code - Latest Comments in Testing Private Methods</title><link>http://virtuouscode.disqus.com/</link><description></description><language>en</language><lastBuildDate>Tue, 23 Dec 2008 12:22:43 -0000</lastBuildDate><item><title>Re: Testing Private Methods</title><link>http://avdi.org/devblog/2008/10/21/testing-private-methods/#comment-4591771</link><description>Nice writeup.  I agree with breaking out the code into separate classes here.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">cpjolicoeur</dc:creator><pubDate>Tue, 23 Dec 2008 12:22:43 -0000</pubDate></item><item><title>Re: Testing Private Methods</title><link>http://avdi.org/devblog/2008/10/21/testing-private-methods/#comment-3252498</link><description>Ruby doesn't really support the notion of free functions (it kind of fakes it, but in a way I prefer not to take advantage of in anything but quick one-off scripts).  It could be a class-level method, I suppose.  I still prefer the class approach, because then if you decide to mock the slugification out you're not mocking methods on the class under test.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">avdi</dc:creator><pubDate>Thu, 23 Oct 2008 11:36:17 -0000</pubDate></item><item><title>Re: Testing Private Methods</title><link>http://avdi.org/devblog/2008/10/21/testing-private-methods/#comment-3231014</link><description>Or the `slugify` method could be turned into a function, since it isn't really relevant to the `BlogPost` instance.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Schierbeck</dc:creator><pubDate>Wed, 22 Oct 2008 11:38:58 -0000</pubDate></item><item><title>Re: Testing Private Methods</title><link>http://avdi.org/devblog/2008/10/21/testing-private-methods/#comment-3225166</link><description>Couldn't agree more. I often hear questions about testing private methods and to me it makes no sense whatsoever. As you say: private methods are an implementation detail!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ben</dc:creator><pubDate>Wed, 22 Oct 2008 08:13:35 -0000</pubDate></item><item><title>Re: Testing Private Methods</title><link>http://avdi.org/devblog/2008/10/21/testing-private-methods/#comment-3224830</link><description>I'm glad to have at least  provided a little bit inspiration for this blog post.  We totally see eye-to-eye on this matter.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bryanl</dc:creator><pubDate>Wed, 22 Oct 2008 07:32:37 -0000</pubDate></item></channel></rss>