Clock is a simple wrapper for Ruby's Time object, with a few fancy additions for testing. In test mode, Clock
will automatically load the mock_clock methods, allowing you to set the current time with Clock.now=(time)
and manually advance time with Clock.tick(seconds)
.
In any other environment other than test, Clock will behave exactly like Time.
To initialize properly, this gem requires Rails 3.0 or above.