Sha256: e824af3a7464a4c32a052886b690a07b59b87d635d2225e78bb470c7cf183925

Contents?: true

Size: 562 Bytes

Versions: 2

Compression:

Stored size: 562 Bytes

Contents

FactoryGirl.define do
  factory :authentication, :class => RestPack::User::Service::Models::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

2 entries across 2 versions & 1 rubygems

Version Path
restpack_user_service-0.0.3 spec/factories/authentication_factory.rb
restpack_user_service-0.0.2 spec/factories/authentication_factory.rb