← Back to Upcase

Stubbing time in Rails 4.1


(Geoff Harcourt) #1

Thoughtboters:

Has anyone used #travel_to in Rails 4.1 yet? I’m wondering if folks have been able to use it as a drop-in replacement for Timecop’s Timecop.travel functionality.


(Matthew Sumner) #2

@geoffharcourt I haven’t used this yet but thanks for pointing it out… this sounds like an awesome addition! I’ll let you know if I have any successes or failures.


(Geoff Harcourt) #3

@DeviousDuck I have a ton of very time-dependent tests in my current app, so I’m looking forward to giving it a try soon.