Skip to content

Instantly share code, notes, and snippets.

@joshmcarthur
Created July 19, 2011 23:23
Show Gist options
  • Save joshmcarthur/1093995 to your computer and use it in GitHub Desktop.
Save joshmcarthur/1093995 to your computer and use it in GitHub Desktop.
Omniauth: stub out providers
## Note: This goes inside your spec_helper.rb file - if using Spork, inside the Spork.prefork block
OmniAuth.config.test_mode = true
OmniAuth.config.add_mock(:twitter, {
:uid => '123456789'
})
OmniAuth.config.add_mock(:facebook, {
:uid => '123456789'
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment