scinote-web/spec/factories/user_teams.rb

18 lines
290 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
user
team
2019-03-07 02:27:40 +08:00
trait :admin do
role { 'admin' }
2019-03-07 02:27:40 +08:00
end
trait :guest do
role { 'guest' }
2019-03-07 02:27:40 +08:00
end
trait :normal_user do # default enum by DB
role { 'normal_user' }
2019-03-07 02:27:40 +08:00
end
2017-08-25 22:07:37 +08:00
end
end