Sha256: 18d44e28041fe5a59ab2cab41abe111de37ae02cb0fe9f65d1280485b7c2ccca
Contents?: true
Size: 907 Bytes
Versions: 4
Compression:
Stored size: 907 Bytes
Contents
FactoryBot.define do factory :employee do first_name { Faker::Name.first_name } last_name { Faker::Name.last_name } email { Faker::Internet.email } password { Faker::Internet.password } address { Faker::Address.full_address } role # { %i[role_contributor role_moderator role_admin].sample } # tenant { nil } # role { nil } # trait :contributor do # role :contributor_role # end # trait :moderator do # role :moderator_role # end # trait :admin do # role :admin_role # end # factory :contributor_user , traits: [:contributor] # factory :moderator_user , traits: [:moderator] # factory :admin_user , traits: [:admin] end # factory :employee do # first_name { "MyString" } # last_name { "MyString" } # address { "MyText" } # email { "MyString" } # password { "MyString" } # end end
Version data entries
4 entries across 4 versions & 1 rubygems