[rspec-users] stubbing Time.zone.now for model tests fails for Rails 2.3.1

Stephen Eley sfeley at gmail.com
Wed Mar 11 23:22:57 EDT 2009


On Wed, Mar 11, 2009 at 1:40 PM, David Schmidt <davids at tower-mt.com> wrote:
>
> Has anyone else run into this problem and come up with a solution to getting
> a fixed time back from Time.zone.now?

This plugin has worked very well for me:
http://github.com/notahat/time_travel/tree/master


-- 
Have Fun,
   Steve Eley (sfeley at gmail.com)
   ESCAPE POD - The Science Fiction Podcast Magazine
   http://www.escapepod.org


More information about the rspec-users mailing list