Registry / testing / timecop

timecop

JSON →
library0.9.11rbrubygemsunverified

Provides time travel and time freezing capabilities to easily test time-dependent code by mocking Time.now, Date.today, and DateTime.now.

gem install timecop
INSTALL
IMPORT
SIG · TIMECOP
T
timecop
testingrubyv0.9.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Timecop
require 'timecop'

Freezes time within a block for testing.

require 'timecop' Timecop.freeze(Time.now) do puts Time.now end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.9.11latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Amazon
1
Resources
timecop — gem install timecop · libregistry