Skip to content

Instantly share code, notes, and snippets.

@croaky
Created October 12, 2008 17:10
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 croaky/16410 to your computer and use it in GitHub Desktop.
Save croaky/16410 to your computer and use it in GitHub Desktop.
@my_cookies = mock('cookies')
@request.stubs(:cookies).returns(@my_cookies)
@my_cookies.expects(:[]=).with(:auth_token).
returns({:value => "value", :expires => 2.weeks.from_now.utc})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment