[ad_1]

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!

[ad_2]

Source link

Leave a Reply

Your email address will not be published. Required fields are marked *