Sha256: 0ef20dc9257fc1460532ae0433462a72fdb6921d27892489deccf2c96df3057e
Contents?: true
Size: 1.07 KB
Versions: 33
Compression:
Stored size: 1.07 KB
Contents
# encoding: utf-8 FactoryGirl.define do sequence(:email) { |n| "testing#{n}@example.com" } factory :admin_user, :class => User do name 'Admin' email { generate(:email) } password 'password' password_confirmation 'password' role_type_id RoleType.admin.id after(:build) do |u| u.skip_confirmation! end end factory :redactor_user, :class => User do name 'Redactor' email { generate(:email) } password 'password' password_confirmation 'password' role_type_id RoleType.redactor.id after(:build) do |u| u.skip_confirmation! end end factory :default_user, :class => User do name 'Test' email { generate(:email) } password 'password' password_confirmation 'password' role_type_id RoleType.default.id after(:build) do |u| u.skip_confirmation! end end factory :user, :class => User do name 'Test' email { generate(:email) } password 'password' password_confirmation 'password' end end
Version data entries
33 entries across 33 versions & 1 rubygems