RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: sch1zo
Site: tumblr.eger-andreas.de
I thought exactly the same. I always just mock Time.zone.now (or Time.now) to test if the time gets set.
I really would like to hear what the benefits of using timecop are if you only want to test if the time gets set to Time.zone.now
I thought exactly the same. I always just mock Time.zone.now (or Time.now) to test if the time gets set.
I really would like to hear what the benefits of using timecop are if you only want to test if the time gets set to Time.zone.now