2017-12-13 19:13:44 -05:00
|
|
|
FactoryBot.define do
|
2016-02-16 22:55:24 -05:00
|
|
|
factory :project_member do
|
|
|
|
user
|
2017-08-02 15:55:11 -04:00
|
|
|
project
|
2016-03-06 16:53:22 -05:00
|
|
|
master
|
|
|
|
|
2016-09-16 11:54:21 -04:00
|
|
|
trait(:guest) { access_level ProjectMember::GUEST }
|
|
|
|
trait(:reporter) { access_level ProjectMember::REPORTER }
|
|
|
|
trait(:developer) { access_level ProjectMember::DEVELOPER }
|
|
|
|
trait(:master) { access_level ProjectMember::MASTER }
|
2016-10-19 08:13:59 -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
|
2016-02-16 22:55:24 -05:00
|
|
|
end
|
|
|
|
end
|