Skip to content

Instantly share code, notes, and snippets.

@brennovich
Created May 15, 2013 21:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brennovich/5587451 to your computer and use it in GitHub Desktop.
Save brennovich/5587451 to your computer and use it in GitHub Desktop.
Warden stubbed sign in
def stubbed_sign_in user
request.env['warden'].stub :authenticate! => user
controller.stub :current_user => user
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment