Skip to main content

travel

Function travel 

Source
pub fn travel(seconds: i64)
Expand description

Moves crate::now by seconds from its current value and freezes it there (Rails’ travel 1.day).

§Examples

ocre::testing::travel_to(1_000);
ocre::testing::travel(3_600);
assert_eq!(ocre::now(), 4_600);
ocre::testing::travel_back();