<?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: Problem Testing ActiveResource with Mocks in Rails</title>
	<atom:link href="http://www.johnnypez.com/design-development/problem-testing-activeresource-with-mocks-in-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.johnnypez.com/design-development/problem-testing-activeresource-with-mocks-in-rails/</link>
	<description>It&#039;s not a blog</description>
	<lastBuildDate>Fri, 25 May 2012 20:02:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.1</generator>
	<item>
		<title>By: k liu</title>
		<link>http://www.johnnypez.com/design-development/problem-testing-activeresource-with-mocks-in-rails/comment-page-1/#comment-215</link>
		<dc:creator>k liu</dc:creator>
		<pubDate>Wed, 26 Jan 2011 16:44:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johnnypez.com/2008/02/29/problem-testing-activeresource-with-mocks-in-rails/#comment-215</guid>
		<description>Taking a cue from knowuh, here&#039;s an improved version that doesn&#039;t require copying code from ARes.

http://pastie.org/1499609</description>
		<content:encoded><![CDATA[<p>Taking a cue from knowuh, here&#8217;s an improved version that doesn&#8217;t require copying code from ARes.</p>
<p><a href="http://pastie.org/1499609" rel="nofollow">http://pastie.org/1499609</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: knowuh</title>
		<link>http://www.johnnypez.com/design-development/problem-testing-activeresource-with-mocks-in-rails/comment-page-1/#comment-151</link>
		<dc:creator>knowuh</dc:creator>
		<pubDate>Tue, 03 Mar 2009 01:36:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johnnypez.com/2008/02/29/problem-testing-activeresource-with-mocks-in-rails/#comment-151</guid>
		<description>Uh, I think I spoke to soon.  

FWIW, your solution ended up not working for me.  I instead had to spend some time modifying my test_helper by adding two methods to turn off and on the mock behavior in setup calls.

Here is a link to the code snipit i ended up adding:

http://pastie.org/405434

</description>
		<content:encoded><![CDATA[<p>Uh, I think I spoke to soon.  </p>
<p>FWIW, your solution ended up not working for me.  I instead had to spend some time modifying my test_helper by adding two methods to turn off and on the mock behavior in setup calls.</p>
<p>Here is a link to the code snipit i ended up adding:</p>
<p><a href="http://pastie.org/405434" rel="nofollow">http://pastie.org/405434</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: knowuh</title>
		<link>http://www.johnnypez.com/design-development/problem-testing-activeresource-with-mocks-in-rails/comment-page-1/#comment-150</link>
		<dc:creator>knowuh</dc:creator>
		<pubDate>Tue, 03 Mar 2009 00:28:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johnnypez.com/2008/02/29/problem-testing-activeresource-with-mocks-in-rails/#comment-150</guid>
		<description>Yes sir,  Thank you!

I only wasted three hours instead of your six.  Still you saved me.  Thanks!</description>
		<content:encoded><![CDATA[<p>Yes sir,  Thank you!</p>
<p>I only wasted three hours instead of your six.  Still you saved me.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ROhan Kini</title>
		<link>http://www.johnnypez.com/design-development/problem-testing-activeresource-with-mocks-in-rails/comment-page-1/#comment-147</link>
		<dc:creator>ROhan Kini</dc:creator>
		<pubDate>Mon, 23 Feb 2009 02:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johnnypez.com/2008/02/29/problem-testing-activeresource-with-mocks-in-rails/#comment-147</guid>
		<description>Is this solution not dependent on how the tests are loaded up ?

Putting the require in the setup block does not really solve the issue, unless you are rolling back HttpMock internals in the teardown. If another test which does not work well with HttpMock loaded runs after BControllerTest things should fail once again.</description>
		<content:encoded><![CDATA[<p>Is this solution not dependent on how the tests are loaded up ?</p>
<p>Putting the require in the setup block does not really solve the issue, unless you are rolling back HttpMock internals in the teardown. If another test which does not work well with HttpMock loaded runs after BControllerTest things should fail once again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karmi</title>
		<link>http://www.johnnypez.com/design-development/problem-testing-activeresource-with-mocks-in-rails/comment-page-1/#comment-116</link>
		<dc:creator>karmi</dc:creator>
		<pubDate>Thu, 29 May 2008 10:23:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johnnypez.com/2008/02/29/problem-testing-activeresource-with-mocks-in-rails/#comment-116</guid>
		<description>Another thanks!!! here :), only after reading your reasoning it occured me that I have require-ed &#039;active_resource/http_mock&#039; in test helper, effectively destroying connection for my non-mock controller test. (Known case of  &quot;being too smart&quot;. Or maybe too &quot;DRY&quot; :)

Thanks!

Karel</description>
		<content:encoded><![CDATA[<p>Another thanks!!! here <img src='http://www.johnnypez.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , only after reading your reasoning it occured me that I have require-ed &#8216;active_resource/http_mock&#8217; in test helper, effectively destroying connection for my non-mock controller test. (Known case of  &#8220;being too smart&#8221;. Or maybe too &#8220;DRY&#8221; <img src='http://www.johnnypez.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks!</p>
<p>Karel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cathal</title>
		<link>http://www.johnnypez.com/design-development/problem-testing-activeresource-with-mocks-in-rails/comment-page-1/#comment-115</link>
		<dc:creator>Cathal</dc:creator>
		<pubDate>Sun, 02 Mar 2008 15:37:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johnnypez.com/2008/02/29/problem-testing-activeresource-with-mocks-in-rails/#comment-115</guid>
		<description>Thanks for posting about this John. I&#039;m sure I would have hit the same problem  sooner or later.</description>
		<content:encoded><![CDATA[<p>Thanks for posting about this John. I&#8217;m sure I would have hit the same problem  sooner or later.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
