<?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"
	>
<channel>
	<title>Comments on: Using Synthesis with Test::Unit and Mocha</title>
	<atom:link href="http://nutrun.com/weblog/using-synthesis-with-testunit-and-mocha/feed/" rel="self" type="application/rss+xml" />
	<link>http://nutrun.com/weblog/using-synthesis-with-testunit-and-mocha/</link>
	<description>nutrun</description>
	<pubDate>Thu, 20 Nov 2008 12:12:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: George Malamidis</title>
		<link>http://nutrun.com/weblog/using-synthesis-with-testunit-and-mocha/#comment-1157</link>
		<dc:creator>George Malamidis</dc:creator>
		<pubDate>Mon, 18 Aug 2008 12:50:51 +0000</pubDate>
		<guid isPermaLink="false">http://new-site.nutrun.com/?p=117#comment-1157</guid>
		<description>Hey Nic, Synthesis has come a long way since this post and supports both Mocha and RSpec now.</description>
		<content:encoded><![CDATA[<p>Hey Nic, Synthesis has come a long way since this post and supports both Mocha and RSpec now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Nic</title>
		<link>http://nutrun.com/weblog/using-synthesis-with-testunit-and-mocha/#comment-1155</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Mon, 18 Aug 2008 01:11:58 +0000</pubDate>
		<guid isPermaLink="false">http://new-site.nutrun.com/?p=117#comment-1155</guid>
		<description>This is something I dearly wanted when I was playing with rspec a year ago. My specs would pass but my app would fail because i mocked out things that didn't exist. (I didn't experience the problem as much using test/unit + mocha because I found I didn't mock out as much stuff, so less opportunity to forget to code behind the mock).</description>
		<content:encoded><![CDATA[<p>This is something I dearly wanted when I was playing with rspec a year ago. My specs would pass but my app would fail because i mocked out things that didn&#8217;t exist. (I didn&#8217;t experience the problem as much using test/unit + mocha because I found I didn&#8217;t mock out as much stuff, so less opportunity to forget to code behind the mock).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nutrun &#38;#187; Blog Archive &#38;#187; Synthesis 0.0.2</title>
		<link>http://nutrun.com/weblog/using-synthesis-with-testunit-and-mocha/#comment-324</link>
		<dc:creator>Nutrun &#38;#187; Blog Archive &#38;#187; Synthesis 0.0.2</dc:creator>
		<pubDate>Sun, 27 Jan 2008 01:43:35 +0000</pubDate>
		<guid isPermaLink="false">http://new-site.nutrun.com/?p=117#comment-324</guid>
		<description>[...] Let&#38;#8217;s revisit the example project from the Using Synthesis with Test::Unit and Mocha article and change the save method of the Storage class to take an additional argument - mode. [...]</description>
		<content:encoded><![CDATA[<p>[...] Let&#38;#8217;s revisit the example project from the Using Synthesis with Test::Unit and Mocha article and change the save method of the Storage class to take an additional argument - mode. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George Malamidis</title>
		<link>http://nutrun.com/weblog/using-synthesis-with-testunit-and-mocha/#comment-323</link>
		<dc:creator>George Malamidis</dc:creator>
		<pubDate>Mon, 14 Jan 2008 23:52:50 +0000</pubDate>
		<guid isPermaLink="false">http://new-site.nutrun.com/?p=117#comment-323</guid>
		<description>As of version 0.0.2, Synthesis will fail for the discussed scenario.</description>
		<content:encoded><![CDATA[<p>As of version 0.0.2, Synthesis will fail for the discussed scenario.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart Caborn</title>
		<link>http://nutrun.com/weblog/using-synthesis-with-testunit-and-mocha/#comment-322</link>
		<dc:creator>Stuart Caborn</dc:creator>
		<pubDate>Mon, 14 Jan 2008 08:18:31 +0000</pubDate>
		<guid isPermaLink="false">http://new-site.nutrun.com/?p=117#comment-322</guid>
		<description>Pat:

I agree that you do need integration tests at some level.  However with a tool like this, could we rely on the business level acceptance tests only?

We (should) always have story level tests to prove that our behaviour is useful.  There also often seems to be an accretion of functional tests who's purpose seems to be to prove that the unit tests all join up.  If we can prove this automagically, then we can do away with these tests?</description>
		<content:encoded><![CDATA[<p>Pat:</p>
<p>I agree that you do need integration tests at some level.  However with a tool like this, could we rely on the business level acceptance tests only?</p>
<p>We (should) always have story level tests to prove that our behaviour is useful.  There also often seems to be an accretion of functional tests who&#8217;s purpose seems to be to prove that the unit tests all join up.  If we can prove this automagically, then we can do away with these tests?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pat Maddox</title>
		<link>http://nutrun.com/weblog/using-synthesis-with-testunit-and-mocha/#comment-321</link>
		<dc:creator>Pat Maddox</dc:creator>
		<pubDate>Sun, 13 Jan 2008 01:40:42 +0000</pubDate>
		<guid isPermaLink="false">http://new-site.nutrun.com/?p=117#comment-321</guid>
		<description>Oh totally.  It isn't a problem with Synthesis anymore than it is a problem with using mocks in general.

It just seems like at *some* level you have to have integration tests.</description>
		<content:encoded><![CDATA[<p>Oh totally.  It isn&#8217;t a problem with Synthesis anymore than it is a problem with using mocks in general.</p>
<p>It just seems like at *some* level you have to have integration tests.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George Malamidis</title>
		<link>http://nutrun.com/weblog/using-synthesis-with-testunit-and-mocha/#comment-320</link>
		<dc:creator>George Malamidis</dc:creator>
		<pubDate>Sun, 13 Jan 2008 01:24:56 +0000</pubDate>
		<guid isPermaLink="false">http://new-site.nutrun.com/?p=117#comment-320</guid>
		<description>Pat,

Sorry, I deleted my initial response when I realized what the problem you were describing was, intending to reply with this...

I know what you mean, now.

This is a Mocha issue, rather than a Synthesis issue. As you probably know, Mocha mocks are ducks. There's Mocha::Mock#responds_like, but it won't solve the problem you're describing.

In the long run, we might end up with a stricter Mocking framework, which, as you're saying, will have to tap into the methods of the actual Objects being mocked, as opposed to ducking them.

Thanks for bringing this up.</description>
		<content:encoded><![CDATA[<p>Pat,</p>
<p>Sorry, I deleted my initial response when I realized what the problem you were describing was, intending to reply with this&#8230;</p>
<p>I know what you mean, now.</p>
<p>This is a Mocha issue, rather than a Synthesis issue. As you probably know, Mocha mocks are ducks. There&#8217;s Mocha::Mock#responds_like, but it won&#8217;t solve the problem you&#8217;re describing.</p>
<p>In the long run, we might end up with a stricter Mocking framework, which, as you&#8217;re saying, will have to tap into the methods of the actual Objects being mocked, as opposed to ducking them.</p>
<p>Thanks for bringing this up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pat Maddox</title>
		<link>http://nutrun.com/weblog/using-synthesis-with-testunit-and-mocha/#comment-319</link>
		<dc:creator>Pat Maddox</dc:creator>
		<pubDate>Sun, 13 Jan 2008 01:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://new-site.nutrun.com/?p=117#comment-319</guid>
		<description>Hey George,

No, data_brander_test.rb doesn't break, which was my point.

I just changed storage.rb and storage_test.rb accordingly.

http://rafb.net/p/HBuzye66.html

So all the tests pass, even though the two components can't be used together.

I've thought about stuff like this in the past.  I have a tough time seeing how you'd make this work without using the real implementation.</description>
		<content:encoded><![CDATA[<p>Hey George,</p>
<p>No, data_brander_test.rb doesn&#8217;t break, which was my point.</p>
<p>I just changed storage.rb and storage_test.rb accordingly.</p>
<p><a href="http://rafb.net/p/HBuzye66.html" rel="nofollow">http://rafb.net/p/HBuzye66.html</a></p>
<p>So all the tests pass, even though the two components can&#8217;t be used together.</p>
<p>I&#8217;ve thought about stuff like this in the past.  I have a tough time seeing how you&#8217;d make this work without using the real implementation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nutrun &#38;#187; Blog Archive &#38;#187; Using Synthesis with Expectations</title>
		<link>http://nutrun.com/weblog/using-synthesis-with-testunit-and-mocha/#comment-318</link>
		<dc:creator>Nutrun &#38;#187; Blog Archive &#38;#187; Using Synthesis with Expectations</dc:creator>
		<pubDate>Sun, 13 Jan 2008 00:42:52 +0000</pubDate>
		<guid isPermaLink="false">http://new-site.nutrun.com/?p=117#comment-318</guid>
		<description>[...] &#38;laquo; Using Synthesis with Test::Unit and Mocha [...]</description>
		<content:encoded><![CDATA[<p>[...] &#38;laquo; Using Synthesis with Test::Unit and Mocha [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pat Maddox</title>
		<link>http://nutrun.com/weblog/using-synthesis-with-testunit-and-mocha/#comment-317</link>
		<dc:creator>Pat Maddox</dc:creator>
		<pubDate>Sun, 13 Jan 2008 00:26:46 +0000</pubDate>
		<guid isPermaLink="false">http://new-site.nutrun.com/?p=117#comment-317</guid>
		<description>Looks cool.  I played with it briefly just to check something out...

If you change the signature of Storage#save to be Storage#save(filename, mode), and update storage_test.rb accordingly, then Synthesis passes, even though the code is now broken.

I realize you said this is a prototype so I don't want to jump the gun :)  How do you plan on handling that sort of case?

Thanks for posting this though, it looks like a step in the right direction.</description>
		<content:encoded><![CDATA[<p>Looks cool.  I played with it briefly just to check something out&#8230;</p>
<p>If you change the signature of Storage#save to be Storage#save(filename, mode), and update storage_test.rb accordingly, then Synthesis passes, even though the code is now broken.</p>
<p>I realize you said this is a prototype so I don&#8217;t want to jump the gun <img src='http://nutrun.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  How do you plan on handling that sort of case?</p>
<p>Thanks for posting this though, it looks like a step in the right direction.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
