Created
October 5, 2014 19:14
-
-
Save BobGu/2a49eac21e7fdd2fc085 to your computer and use it in GitHub Desktop.
This file contains 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
#this set up omniauth fake data | |
#also this allows us to stub or double the current_user method and return the User.last instead of nil | |
before(:each) do | |
set_omniauth() | |
ApplicationController.any_instance.stub(:current_user).and_return(User.last) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment