KemalIdentity::Testing::TestClock
Inherits KemalIdentity::Clock < Reference < Object
A clock that only moves when a spec moves it.
This is what makes expiry testable at all: asserting that a session expires after
twelve hours advances the clock rather than sleeping. Passes the same Clock contract
spec as SystemClock.
Constructors
Instance methods
Move forward. Time never runs backwards on its own, so this is the only mutator, and it refuses a negative span rather than quietly rewinding.