scinote-web/spec/factories/user_teams.rb

16 lines
260 B
Ruby
Raw Normal View History

2019-03-07 02:27:40 +08:00
# frozen_string_literal: true
FactoryBot.define do
2017-08-25 22:07:37 +08:00
factory :user_team do
2019-03-07 02:27:40 +08:00
trait :admin do
role 'admin'
end
trait :guest do
role 'guest'
end
trait :normal_user do # default enum by DB
role 'normal_user'
end
2017-08-25 22:07:37 +08:00
end
end