Created
May 15, 2013 21:14
-
-
Save brennovich/5587451 to your computer and use it in GitHub Desktop.
Warden stubbed sign in
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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