2016-02-17 03:55:24 +00:00
|
|
|
FactoryGirl.define do
|
|
|
|
factory :project_member do
|
|
|
|
user
|
2017-01-25 01:30:56 +00:00
|
|
|
project factory: :empty_project
|
2016-03-06 21:53:22 +00:00
|
|
|
master
|
|
|
|
|
2016-09-16 15:54:21 +00: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 12:13:59 +00:00
|
|
|
trait(:access_request) { requested_at Time.now }
|
2017-05-18 13:18:26 +00:00
|
|
|
|
|
|
|
trait(:invited) do
|
|
|
|
user_id nil
|
|
|
|
invite_token 'xxx'
|
|
|
|
invite_email 'email@email.com'
|
|
|
|
end
|
2016-02-17 03:55:24 +00:00
|
|
|
end
|
|
|
|
end
|