Module: Clickwrap::Testing::FrozenClock
- Defined in:
- lib/clickwrap/testing.rb
Overview
Reads the frozen server clock, if a freeze_time_at block is running.
Prepended onto Clickwrap's singleton rather than redefining now, so
the original method stays reachable through super and restoring it is
not a matter of remembering to.
Instance Method Summary collapse
Instance Method Details
#now ⇒ Object
72 73 74 |
# File 'lib/clickwrap/testing.rb', line 72 def now Testing.frozen_time || super end |