Sha256: c8f13f7b827a3bec1bfb534054e9d7d055f1259f455e16ec339431de00504cb7

Contents?: true

Size: 815 Bytes

Versions: 4

Compression:

Stored size: 815 Bytes

Contents

Before '@omniauth' do
  OmniAuth.config.test_mode = true

  # the symbol passed to mock_auth is the same as the name of the provider set up in the initializer
  # OmniAuth.config.mock_auth[:google] = {
  #     "provider"=>"google",
  #     "uid"=>"http://xxxx.com/openid?id=118181138998978630963",
  #     "user_info"=>{"email"=>"test@xxxx.com", "first_name"=>"Test", "last_name"=>"User", "name"=>"Test User"}
  # }

  OmniAuth.config.add_mock(:facebook, {
    'uid' => '1234',
    'extra' => {
    'user_hash' => {
      'email' => 'foobar@example.com',
      'first_name' => 'John',
      'last_name' => 'Doe',
      'gender' => 'Male'
      }
    }
  })

  OmniAuth.config.add_mock(:twitter, {
    :uid => '12345',
    :nickname => 'zapnap'
  })
end

After '@omniauth' do
  OmniAuth.config.test_mode = false
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
socialite-0.1.0.pre features/support/omniauth.rb
socialite-0.0.1.beta4 features/support/omniauth.rb
socialite-0.0.1.beta2 features/support/omniauth.rb
socialite-0.0.1.beta features/support/omniauth.rb