Skip to content

Instantly share code, notes, and snippets.

@trek
Created August 18, 2008 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trek/5966 to your computer and use it in GitHub Desktop.
Save trek/5966 to your computer and use it in GitHub Desktop.
# Sets up expectation so that times aren't off by moments
Time.should_receive(:now).and_return(@current_time)
@current_time.should_receive(:to_i).and_return(1214619134)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment