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 }
|
2018-07-11 10:36:08 -04:00
|
|
|
trait(:maintainer) { access_level GroupMember::MAINTAINER }
|
2016-09-20 08:18:11 -04:00
|
|
|
trait(:owner) { access_level GroupMember::OWNER }
|
2018-09-20 13:02:36 -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
|