paint-brush
Timecop: A Ruby Gem to Write Time-Sensitives Testsby@maclenn77
159 reads

Timecop: A Ruby Gem to Write Time-Sensitives Tests

by J.P. Pérez-Tejada5mMarch 5th, 2024
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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
J.P. Pérez-Tejada

J.P. Pérez-Tejada

@maclenn77

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

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

About Author

J.P. Pérez-Tejada HackerNoon profile picture
J.P. Pérez-Tejada@maclenn77
Software Developer interested in Languages, Web Development and Data Engineering.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite