Timecop: A Ruby Gem to Write Time-Sensitives Tests
2024-3-5 09:6:46 Author: hackernoon.com(查看原文) 阅读量:12 收藏

Hackernoon logo

Timecop: A Ruby Gem to Write Time-Sensitives Tests by@maclenn77

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!

featured image - Timecop: A Ruby Gem to Write Time-Sensitives Tests

J.P. Pérez-Tejada HackerNoon profile picture


@maclenn77

J.P. Pérez-Tejada


Software Developer interested in Languages, Web Development and Data Engineering.


Receive Stories from @maclenn77

react to story with heart

RELATED STORIES

Article Thumbnail

Article Thumbnail

Article Thumbnail

Article Thumbnail

Article Thumbnail

L O A D I N G
. . . comments & more!


文章来源: https://hackernoon.com/timecop-a-ruby-gem-to-write-time-sensitives-tests?source=rss
如有侵权请联系:admin#unsafe.sh