<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>Bryan Helmkamp - Cucumber step definition tip: Stubbing time Comments</title>
  <id>tag:www.brynary.com,2009:/2009/2/3/cucumber-step-definition-tip-stubbing-time/comments</id>
  <generator version="0.8.0" uri="http://mephistoblog.com">Mephisto Drax</generator>
  <link href="http://www.brynary.com/2009/2/3/cucumber-step-definition-tip-stubbing-time/comments.xml" rel="self" type="application/atom+xml"/>
  <link href="/2009/2/3/cucumber-step-definition-tip-stubbing-time" rel="alternate" type="text/html"/>
  <updated>2009-03-17T14:34:01Z</updated>
  <entry xml:base="http://www.brynary.com/">
    <author>
      <name>Dr Nic</name>
    </author>
    <id>tag:www.brynary.com,2009-02-03:1106:1126</id>
    <published>2009-03-17T14:34:01Z</published>
    <updated>2009-03-17T14:34:01Z</updated>
    <category term="BDD"/>
    <category term="Ruby"/>
    <link href="http://www.brynary.com/2009/2/3/cucumber-step-definition-tip-stubbing-time" rel="alternate" type="text/html"/>
    <title>Comment on 'Cucumber step definition tip: Stubbing time' by Dr Nic</title>
<content type="html">&lt;p&gt;For using mocha with cucumber, the following pastie seems to work: http://gist.github.com/80554&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.brynary.com/">
    <author>
      <name>schlick</name>
    </author>
    <id>tag:www.brynary.com,2009-02-03:1106:1111</id>
    <published>2009-02-28T05:45:33Z</published>
    <updated>2009-02-28T05:45:33Z</updated>
    <category term="BDD"/>
    <category term="Ruby"/>
    <link href="http://www.brynary.com/2009/2/3/cucumber-step-definition-tip-stubbing-time" rel="alternate" type="text/html"/>
    <title>Comment on 'Cucumber step definition tip: Stubbing time' by schlick</title>
<content type="html">&lt;p&gt;Awesome! I used it straight away and it worked like a charm.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.brynary.com/">
    <author>
      <name>Vaskas</name>
    </author>
    <id>tag:www.brynary.com,2009-02-03:1106:1110</id>
    <published>2009-02-25T14:57:37Z</published>
    <updated>2009-02-25T14:57:37Z</updated>
    <category term="BDD"/>
    <category term="Ruby"/>
    <link href="http://www.brynary.com/2009/2/3/cucumber-step-definition-tip-stubbing-time" rel="alternate" type="text/html"/>
    <title>Comment on 'Cucumber step definition tip: Stubbing time' by Vaskas</title>
<content type="html">&lt;p&gt;Hi Bryan! Sorry for offtopic. Did you solve this problem:
&lt;cite&gt;rubygems.rb:723:in `getpwuid&#8217;: can&#8217;t find user for 501 (ArgumentError) (Yes, user 501 exists)&lt;/cite&gt;
I am experiencing exactly the same behavior when child processes stop working after some time..&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.brynary.com/">
    <author>
      <name>Mark Wilden</name>
    </author>
    <id>tag:www.brynary.com,2009-02-03:1106:1109</id>
    <published>2009-02-19T20:16:38Z</published>
    <updated>2009-02-19T20:16:38Z</updated>
    <category term="BDD"/>
    <category term="Ruby"/>
    <link href="http://www.brynary.com/2009/2/3/cucumber-step-definition-tip-stubbing-time" rel="alternate" type="text/html"/>
    <title>Comment on 'Cucumber step definition tip: Stubbing time' by Mark Wilden</title>
<content type="html">&lt;p&gt;I was using Time.stub(:now) and we had some baffling feature failures on the build server that didn&#8217;t occur on any local box. It turned out that the problem was the order of the features &#8211; on the build machine, the feature that stubbed Time was interfering with subsequent features. This code is just what we needed &#8211; thanks!&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.brynary.com/">
    <author>
      <name>Sebastian</name>
    </author>
    <id>tag:www.brynary.com,2009-02-03:1106:1107</id>
    <published>2009-02-03T13:10:44Z</published>
    <updated>2009-02-03T13:10:44Z</updated>
    <category term="BDD"/>
    <category term="Ruby"/>
    <link href="http://www.brynary.com/2009/2/3/cucumber-step-definition-tip-stubbing-time" rel="alternate" type="text/html"/>
    <title>Comment on 'Cucumber step definition tip: Stubbing time' by Sebastian</title>
<content type="html">&lt;p&gt;I prefer to use Time.freeze (there is a version here http://snippets.dzone.com/posts/show/4776)&lt;/p&gt;</content>  </entry>
</feed>
