Too Long; Didn't Read
Timecop is a ruby gem created for those specific cases where we have tests dependent on time. It could be birthdays, but also it could be expiration days for JWT tokens or recurrent billings. Timecop creates a mock of Time.now, Date.today, and DateTime.now. With Timecop, you control the time of your tests!
@maclenn77
J.P. Pérez-Tejada
Software Developer interested in Languages, Web Development and Data Engineering.
Receive Stories from @maclenn77
RELATED STORIES
L O A D I N G
. . . comments & more!