mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
17 lines
290 B
Ruby
17 lines
290 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :user_team do
|
|
user
|
|
team
|
|
trait :admin do
|
|
role { 'admin' }
|
|
end
|
|
trait :guest do
|
|
role { 'guest' }
|
|
end
|
|
trait :normal_user do # default enum by DB
|
|
role { 'normal_user' }
|
|
end
|
|
end
|
|
end
|