bebanjo / delorean

DISCONTINUED - Delorean lets you travel in time with Ruby by mocking Time.now
MIT License
454 stars 25 forks source link

time_travel_to does not consider hours and minutes #5

Closed ZsoltFabok closed 13 years ago

ZsoltFabok commented 13 years ago

Hi,

I observed the following in my test cases:

ree-1.8.7-2011.03 :001 > Delorean.time_travel_to DateTime.strptime("2011-05-25 18:00", "%Y-%m-%d %H:%M") => nil ree-1.8.7-2011.03 :002 > Time.now => Wed May 25 00:00:02 +0200 2011

It seems that the Delorean does not consider the hours. There is a workaround, though: I can use jump after calling time_travel_to

Cheers, Zsolt

porras commented 13 years ago

Fixed in 1.0.1

Thank you!

ZsoltFabok commented 13 years ago

Thanks