mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 20:24:43 +08:00
15 lines
260 B
Ruby
15 lines
260 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :user_team do
|
|
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
|