Sha256: 10bc95e7b59f592fb63067cf051f20d74fcd99942bf911427ab33c0c790a3a30

Contents?: true

Size: 1.35 KB

Versions: 38

Compression:

Stored size: 1.35 KB

Contents

# frozen_string_literal: true

module  OmniAuth
module  MockAuthentications
module  Facebook
  def self.authentication
    OmniAuth::AuthHash.new(
      'provider'    => 'facebook',
      'uid'         => '100002971692646',
      'credentials' => {
        'token' => 'my_facebook_token',
      },
      'info'        => {
        'name'        => 'Sharon Letuchysky',
        'email'       => nil,
        'nickname'    => nil,
        'first_name'  => 'Sharon',
        'last_name'   => 'Letuchysky',
        'location'    => nil,
        'description' => nil,
        'image'       => 'http://graph.facebook.com/100002971692646/picture?type=square',
        'phone'       => nil,
        'urls'        => {
          'Facebook' => 'http://www.facebook.com/profile.php?id=100002971692646',
          'Website'  => nil,
        },
      },
      'extra'       => {
        'user_hash' => {
          'id'           => '100002971692646',
          'name'         => 'Sharon Ambiggjcaccg Letuchysky',
          'first_name'   => 'Sharon',
          'middle_name'  => 'Ambiggjcaccg',
          'last_name'    => 'Letuchysky',
          'link'         => 'http://www.facebook.com/profile.php?id=100002971692646',
          'gender'       => 'female',
          'locale'       => 'en_US',
          'updated_time' => '2011-09-11T17:00:51+0000',
        },
      }
    )
  end
end
end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
rspeckled-0.0.48 lib/rspeckled/mock_authentications/omniauth/facebook.rb
rspeckled-0.0.47 lib/rspeckled/mock_authentications/omniauth/facebook.rb
rspeckled-0.0.46 lib/rspeckled/mock_authentications/omniauth/facebook.rb
rspeckled-0.0.45 lib/rspeckled/mock_authentications/omniauth/facebook.rb
rspeckled-0.0.44 lib/rspeckled/mock_authentications/omniauth/facebook.rb
rspeckled-0.0.43 lib/rspeckled/mock_authentications/omniauth/facebook.rb
rspeckled-0.0.42 lib/rspeckled/mock_authentications/omniauth/facebook.rb
rspeckled-0.0.41 lib/rspeckled/mock_authentications/omniauth/facebook.rb
rspeckled-0.0.40 lib/rspeckled/mock_authentications/omniauth/facebook.rb
rspeckled-0.0.39 lib/rspeckled/mock_authentications/omniauth/facebook.rb
rspeckled-0.0.38 lib/rspeckled/mock_authentications/omniauth/facebook.rb
rspeckled-0.0.37 lib/rspeckled/mock_authentications/omniauth/facebook.rb
rspeckled-0.0.36 lib/rspeckled/mock_authentications/omniauth/facebook.rb
rspeckled-0.0.35 lib/rspeckled/mock_authentications/omniauth/facebook.rb
rspeckled-0.0.34 lib/rspeckled/mock_authentications/omniauth/facebook.rb
rspeckled-0.0.33 lib/rspeckled/mock_authentications/omniauth/facebook.rb
rspeckled-0.0.32 lib/rspeckled/mock_authentications/omniauth/facebook.rb
rspeckled-0.0.31 lib/rspeckled/mock_authentications/omniauth/facebook.rb