Sha256: c7b98dc3fd8ce93ffde374bb7f866a8564ce2b51e421a8a0f8d4acbc151dc776

Contents?: true

Size: 544 Bytes

Versions: 1

Compression:

Stored size: 544 Bytes

Contents

FactoryGirl.define do
  factory :authentication, :class => Models::Users::Authentication do
    user
    application_id { user.application_id }
    provider 'twitter'
    sequence(:uid)  {|n| "UID_#{n}" }
    omniauth {
      {
        provider: provider,
        uid: uid,
        info: {
          name: 'Gavin Joyce',
          nickname: 'gavinjoyce',
          email: 'gavinjoyce@gmail.com',
          location: 'Dublin, Ireland',
          description: 'Building cool things with Ruby & Ember.js'
        }
      }.to_json
    }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
restpack_user_service-0.0.5 spec/factories/authentication_factory.rb