<?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: RSpec&#8217;ing with Time.now</title> <atom:link href="http://ariejan.net/2008/11/05/rspecing-with-timenow/feed/" rel="self" type="application/rss+xml" /><link>http://ariejan.net/2008/11/05/rspecing-with-timenow/</link> <description>Code Monkey</description> <lastBuildDate>Thu, 11 Mar 2010 04:50:50 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: John Trupiano</title><link>http://ariejan.net/2008/11/05/rspecing-with-timenow/comment-page-1/#comment-11306</link> <dc:creator>John Trupiano</dc:creator> <pubDate>Sun, 06 Dec 2009 15:53:56 +0000</pubDate> <guid
isPermaLink="false">http://ariejan.net/?p=320#comment-11306</guid> <description>Timecop ( http://github.com/jtrupiano/timecop ) can be particularly handy in these situations.  One particularly useful feature is that it mocks Time.now, Date.today and DateTime.now all in one call.  It also allows you to distinguish between freezing time (Timecop.freeze) and rebasing time (Timecop.travel).  The latter allows Time to continue to move forward.</description> <content:encoded><![CDATA[<p>Timecop ( <a
href="http://github.com/jtrupiano/timecop" rel="nofollow">http://github.com/jtrupiano/timecop</a> ) can be particularly handy in these situations.  One particularly useful feature is that it mocks Time.now, Date.today and DateTime.now all in one call.  It also allows you to distinguish between freezing time (Timecop.freeze) and rebasing time (Timecop.travel).  The latter allows Time to continue to move forward.</p> ]]></content:encoded> </item> <item><title>By: Ariejan de Vroom</title><link>http://ariejan.net/2008/11/05/rspecing-with-timenow/comment-page-1/#comment-10627</link> <dc:creator>Ariejan de Vroom</dc:creator> <pubDate>Thu, 06 Nov 2008 11:03:56 +0000</pubDate> <guid
isPermaLink="false">http://ariejan.net/?p=320#comment-10627</guid> <description>The idea is that you test your Model as it is. I don&#039;t think it&#039;s smart to change your Model to accept a Time object just to test it.Stubbing and mocking can get ugly and I try to keep it to an absolute minimum. This example, however, works fine and it&#039;s quite clear what you&#039;re doing.</description> <content:encoded><![CDATA[<p>The idea is that you test your Model as it is. I don&#8217;t think it&#8217;s smart to change your Model to accept a Time object just to test it.</p><p>Stubbing and mocking can get ugly and I try to keep it to an absolute minimum. This example, however, works fine and it&#8217;s quite clear what you&#8217;re doing.</p> ]]></content:encoded> </item> <item><title>By: Matthijs Langenberg</title><link>http://ariejan.net/2008/11/05/rspecing-with-timenow/comment-page-1/#comment-10626</link> <dc:creator>Matthijs Langenberg</dc:creator> <pubDate>Thu, 06 Nov 2008 10:54:23 +0000</pubDate> <guid
isPermaLink="false">http://ariejan.net/?p=320#comment-10626</guid> <description>Or you could pass the current time to Model.create(). I&#039;m starting to dislike all this mocking and stubbing.</description> <content:encoded><![CDATA[<p>Or you could pass the current time to Model.create(). I&#8217;m starting to dislike all this mocking and stubbing.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached
Page Caching using memcached (user agent is rejected)

Served from: starbuck.ariejan.net @ 2010-03-16 10:33:01 -->