<?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: On Rails Testing</title>
	<atom:link href="http://yehudakatz.com/2009/06/20/on-rails-testing/feed/" rel="self" type="application/rss+xml" />
	<link>http://yehudakatz.com/2009/06/20/on-rails-testing/</link>
	<description>Random Geek-Related Thoughts</description>
	<lastBuildDate>Sat, 20 Apr 2013 07:23:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: John Quarto-vonTivadar</title>
		<link>http://yehudakatz.com/2009/06/20/on-rails-testing/comment-page-1/#comment-17340</link>
		<dc:creator>John Quarto-vonTivadar</dc:creator>
		<pubDate>Wed, 04 Nov 2009 01:49:57 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=276#comment-17340</guid>
		<description><![CDATA[Yehuda, are you still working on a new Rails 3 book via Manning? The book they&#039;re selling with that title is a Merb book and there haven&#039;t been any pre-release updates in months.   Just wondering if you&#039;ve dropped the idea of completing the Rails 3 book.]]></description>
		<content:encoded><![CDATA[<p>Yehuda, are you still working on a new Rails 3 book via Manning? The book they&#8217;re selling with that title is a Merb book and there haven&#8217;t been any pre-release updates in months.   Just wondering if you&#8217;ve dropped the idea of completing the Rails 3 book.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabe Hollombe</title>
		<link>http://yehudakatz.com/2009/06/20/on-rails-testing/comment-page-1/#comment-16625</link>
		<dc:creator>Gabe Hollombe</dc:creator>
		<pubDate>Tue, 23 Jun 2009 03:06:03 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=276#comment-16625</guid>
		<description><![CDATA[Thanks for the replies, Francis and Yehuda. Francis, I&#039;ll give your talk a view when I&#039;ve got a spare hour.  And yeah, Yehuda, I also like your rule of thumb; thanks for sharing that.]]></description>
		<content:encoded><![CDATA[<p>Thanks for the replies, Francis and Yehuda. Francis, I&#8217;ll give your talk a view when I&#8217;ve got a spare hour.  And yeah, Yehuda, I also like your rule of thumb; thanks for sharing that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: schwabsauce</title>
		<link>http://yehudakatz.com/2009/06/20/on-rails-testing/comment-page-1/#comment-16623</link>
		<dc:creator>schwabsauce</dc:creator>
		<pubDate>Mon, 22 Jun 2009 20:00:52 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=276#comment-16623</guid>
		<description><![CDATA[Isn&#039;t rr the answer to this dilemma, the need for both a simple, atomic test of behavior (mock) and also an integrated black box test (no mock)?  Doesn&#039;t the proxying feature have some bearing on this?]]></description>
		<content:encoded><![CDATA[<p>Isn&#8217;t rr the answer to this dilemma, the need for both a simple, atomic test of behavior (mock) and also an integrated black box test (no mock)?  Doesn&#8217;t the proxying feature have some bearing on this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sinclair</title>
		<link>http://yehudakatz.com/2009/06/20/on-rails-testing/comment-page-1/#comment-16622</link>
		<dc:creator>Sinclair</dc:creator>
		<pubDate>Mon, 22 Jun 2009 16:15:21 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=276#comment-16622</guid>
		<description><![CDATA[Be wary before knocking the mocking. When such things SAS, web services, legacy systems, payment gateways exist ... it is possible to see a means of designing and testing interactions across such boundaries. And the reason why mocking and stubbing are considered useful solutions to such recurring problems.

Don&#039;t knock the mock!]]></description>
		<content:encoded><![CDATA[<p>Be wary before knocking the mocking. When such things SAS, web services, legacy systems, payment gateways exist &#8230; it is possible to see a means of designing and testing interactions across such boundaries. And the reason why mocking and stubbing are considered useful solutions to such recurring problems.</p>
<p>Don&#8217;t knock the mock!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francis Hwang</title>
		<link>http://yehudakatz.com/2009/06/20/on-rails-testing/comment-page-1/#comment-16621</link>
		<dc:creator>Francis Hwang</dc:creator>
		<pubDate>Mon, 22 Jun 2009 12:19:35 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=276#comment-16621</guid>
		<description><![CDATA[Arg, &quot;Don&#039;t mock anything you own&quot;, even.]]></description>
		<content:encoded><![CDATA[<p>Arg, &#8220;Don&#8217;t mock anything you own&#8221;, even.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francis Hwang</title>
		<link>http://yehudakatz.com/2009/06/20/on-rails-testing/comment-page-1/#comment-16620</link>
		<dc:creator>Francis Hwang</dc:creator>
		<pubDate>Mon, 22 Jun 2009 03:18:46 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=276#comment-16620</guid>
		<description><![CDATA[Gabe: Well, if you&#039;ve got a free hour, you could watch the &quot;Testing Heresies&quot; talk I gave at the last RubyConf. A lot of it is devoted to the subject of mocking: http://rubyconf2008.confreaks.com/testing-heresies.html

In a nutshell, I&#039;d say that I think it is system integrity that matters in your application, not how layers interact. I find that mocking is a way to lock down layer interaction, but that doesn&#039;t do you any good if the overall system doesn&#039;t work, and in fact is a detriment when you have to do serious refactoring and have to spend extra time dragging your mocks along with you.

Yehuda: &quot;Don&#039;t mock anything you don&#039;t own&quot; is a great rule of thumb, I&#039;d say.]]></description>
		<content:encoded><![CDATA[<p>Gabe: Well, if you&#8217;ve got a free hour, you could watch the &#8220;Testing Heresies&#8221; talk I gave at the last RubyConf. A lot of it is devoted to the subject of mocking: <a href="http://rubyconf2008.confreaks.com/testing-heresies.html" rel="nofollow">http://rubyconf2008.confreaks.com/testing-heresies.html</a></p>
<p>In a nutshell, I&#8217;d say that I think it is system integrity that matters in your application, not how layers interact. I find that mocking is a way to lock down layer interaction, but that doesn&#8217;t do you any good if the overall system doesn&#8217;t work, and in fact is a detriment when you have to do serious refactoring and have to spend extra time dragging your mocks along with you.</p>
<p>Yehuda: &#8220;Don&#8217;t mock anything you don&#8217;t own&#8221; is a great rule of thumb, I&#8217;d say.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George Feil</title>
		<link>http://yehudakatz.com/2009/06/20/on-rails-testing/comment-page-1/#comment-16616</link>
		<dc:creator>George Feil</dc:creator>
		<pubDate>Sun, 21 Jun 2009 20:52:42 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=276#comment-16616</guid>
		<description><![CDATA[I&#039;m glad I&#039;m not the only one struggling with mocks. I find them frustrating to use sometimes. Mocha, for example, doesn&#039;t handle stubbing and mocking class methods very well, which causes me to mock / stub much deeper than I expect to.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m glad I&#8217;m not the only one struggling with mocks. I find them frustrating to use sometimes. Mocha, for example, doesn&#8217;t handle stubbing and mocking class methods very well, which causes me to mock / stub much deeper than I expect to.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wycats</title>
		<link>http://yehudakatz.com/2009/06/20/on-rails-testing/comment-page-1/#comment-16615</link>
		<dc:creator>wycats</dc:creator>
		<pubDate>Sun, 21 Jun 2009 17:37:05 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=276#comment-16615</guid>
		<description><![CDATA[Mocking out a call to a REST API is a pretty good use-case for mocks. My general rule is &quot;Don&#039;t mock anything you own&quot; and more strictly &quot;Don&#039;t mock anything happening inside your own process&quot;. There are people who use mocks to good effect, but they&#039;re an extremely sharp tool and my experience is that the people who use them well are very skilled programmers with an extremely honed testing philosophy.]]></description>
		<content:encoded><![CDATA[<p>Mocking out a call to a REST API is a pretty good use-case for mocks. My general rule is &#8220;Don&#8217;t mock anything you own&#8221; and more strictly &#8220;Don&#8217;t mock anything happening inside your own process&#8221;. There are people who use mocks to good effect, but they&#8217;re an extremely sharp tool and my experience is that the people who use them well are very skilled programmers with an extremely honed testing philosophy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabe Hollombe</title>
		<link>http://yehudakatz.com/2009/06/20/on-rails-testing/comment-page-1/#comment-16613</link>
		<dc:creator>Gabe Hollombe</dc:creator>
		<pubDate>Sun, 21 Jun 2009 09:08:16 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=276#comment-16613</guid>
		<description><![CDATA[@Francis, I&#039;m just learning about mocks and stubs and, because I value your opinion,  I&#039;m wondering if you can provide a link or two about why you&#039;re an anti-mocking zealot? 

I just used Mocha to mock out a call to a 3rd party REST API call for my tests.  Surely this is an ok use case for mocks, right?  So where do they go wrong?]]></description>
		<content:encoded><![CDATA[<p>@Francis, I&#8217;m just learning about mocks and stubs and, because I value your opinion,  I&#8217;m wondering if you can provide a link or two about why you&#8217;re an anti-mocking zealot? </p>
<p>I just used Mocha to mock out a call to a 3rd party REST API call for my tests.  Surely this is an ok use case for mocks, right?  So where do they go wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://yehudakatz.com/2009/06/20/on-rails-testing/comment-page-1/#comment-16612</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Sun, 21 Jun 2009 02:49:17 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=276#comment-16612</guid>
		<description><![CDATA[I&#039;ve realized recently that although mocks have their place (in unit tests), they need to be complemented by higher levels tests to gain real confidence (especially during refactoring). It also helps if the mocking framework allows a way to do checks on mocks (so they can&#039;t have an entirely different interface than the object they are supposed to be replacing). Mocha sort of has this with it&#039;s #responds_like method, but it&#039;s not a full solution. I&#039;m not sure what capabilities other mocking libraries offer.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;ve realized recently that although mocks have their place (in unit tests), they need to be complemented by higher levels tests to gain real confidence (especially during refactoring). It also helps if the mocking framework allows a way to do checks on mocks (so they can&#8217;t have an entirely different interface than the object they are supposed to be replacing). Mocha sort of has this with it&#8217;s #responds_like method, but it&#8217;s not a full solution. I&#8217;m not sure what capabilities other mocking libraries offer.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
