2017-12-13 19:13:44 -05:00
|
|
|
FactoryBot.define do
|
2014-09-15 03:57:02 -04:00
|
|
|
factory :group_member do
|
|
|
|
access_level { GroupMember::OWNER }
|
2013-06-17 06:41:35 -04:00
|
|
|
group
|
|
|
|
user
|
2016-09-20 08:18:11 -04:00
|
|
|
|
|
|
|
trait(:guest) { access_level GroupMember::GUEST }
|
|
|
|
trait(:reporter) { access_level GroupMember::REPORTER }
|
|
|
|
trait(:developer) { access_level GroupMember::DEVELOPER }
|
|
|
|
trait(:master) { access_level GroupMember::MASTER }
|
|
|
|
trait(:owner) { access_level GroupMember::OWNER }
|
2016-10-19 07:13:44 -04:00
|
|
|
trait(:access_request) { requested_at Time.now }
|
2017-05-18 09:18:26 -04:00
|
|
|
|
|
|
|
trait(:invited) do
|
|
|
|
user_id nil
|
|
|
|
invite_token 'xxx'
|
|
|
|
invite_email 'email@email.com'
|
|
|
|
end
|
2013-06-17 06:07:16 -04:00
|
|
|
end
|
|
|
|
end
|