Sha256: efacf4a866bc53474cbcf337220a6ce236f9fbbf3575f4b805f4e6cca7c7e3be

Contents?: true

Size: 317 Bytes

Versions: 1

Compression:

Stored size: 317 Bytes

Contents

FactoryGirl.define do
  factory :user do
    # Something here
  end

  factory :linked_user, :parent => :user do
    after(:build) do |user|
      user.identities = [
        FactoryGirl.build(:identity, :provider => 'facebook'),
        FactoryGirl.build(:identity, :provider => 'twitter')
      ]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
socialite-0.1.0.pre spec/factories/user.rb