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?
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?
On Sat, Jan 16, 2010 at 12:23 AM, jko170 [email protected] 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 read http://wiki.github.com/dchelimsky/rspec/get-in-touch and
help us
help you by providing some context.
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs