Skip to content

Instantly share code, notes, and snippets.

@BobGu
Created October 5, 2014 19:14
Show Gist options
  • Save BobGu/2a49eac21e7fdd2fc085 to your computer and use it in GitHub Desktop.
Save BobGu/2a49eac21e7fdd2fc085 to your computer and use it in GitHub Desktop.
#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