Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 464 Bytes

README.markdown

File metadata and controls

11 lines (7 loc) · 464 Bytes

Clock

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.

Requirements

To initialize properly, this gem requires Rails 3.0 or above.