AlexanderZaytsev / domp

Devise & Omniauth Multiple Providers
MIT License
106 stars 15 forks source link

Make compatible with OmniAuth.config.mock_auth #6

Closed maxcal closed 10 years ago

maxcal commented 10 years ago

Fixed two issues that make the controller and model authentication break tests using OmniAuth mocks. See https://github.com/intridea/omniauth/wiki/Integration-Testing

AlexanderZaytsev commented 10 years ago

Closing this because if you mock properly, the existing code works.

Properly is this:

OmniAuth.config.mock_auth[:twitter] = OmniAuth::AuthHash.new({
    :provider => 'twitter',
    :uid => '123545'
  })