Created
November 9, 2011 14:46
-
-
Save JonRowe/1351629 to your computer and use it in GitHub Desktop.
Devise stubs
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 manually_sign_in(person) | |
controller.stub!(:current_user).and_return(person) | |
controller.stub!(:user_signed_in?).and_return(true) | |
controller.stub(:authenticate_user!).and_return(true) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment