Sha256: e2a88b6956369f29e8742f8e100a0d37f015ebdf621ae51c9ba3d6d41c7a7a27
Contents?: true
Size: 535 Bytes
Versions: 24
Compression:
Stored size: 535 Bytes
Contents
FactoryGirl.define do factory :user do sequence(:email) { |_n| "email-#{srand}@test.com" } password 'a password' password_confirmation 'a password' factory :admin do after(:build) do |user| def user.groups ["admin"] end end end factory :jill do email 'jilluser@example.com' end factory :archivist, aliases: [:user_with_fixtures] do email 'archivist1@example.com' end factory :curator do email 'curator1@example.com' end end end
Version data entries
24 entries across 24 versions & 2 rubygems