My code stubs Time.current by using mocha and Time.parse
('1984-01-28'). I fixed the problem by using Time.zone.parse
('1984-01-28').

Thank you for the reply.

On Jan 16, 4:59 am, David Chelimsky <dchelim...@gmail.com> wrote:
> On Sat, Jan 16, 2010 at 12:23 AM, jko170 <jko...@gmail.com> wrote:
> > Surely I cannot be the only one experiencing this issue.
>
> > I have some code that is "time/date sensitive".
>
> > Why do some specs fail when I run rake spec, but they do not when I
> > use command R?
>
> Please readhttp://wiki.github.com/dchelimsky/rspec/get-in-touchand help us
> help you by providing some context.
>
> _______________________________________________
> rspec-users mailing list
> rspec-us...@rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to