BigW Consortium Gitlab

project_members.rb 395 Bytes
Newer Older
1 2 3 4
FactoryGirl.define do
  factory :project_member do
    user
    project
5 6
    master

7 8 9 10
    trait(:guest)     { access_level ProjectMember::GUEST }
    trait(:reporter)  { access_level ProjectMember::REPORTER }
    trait(:developer) { access_level ProjectMember::DEVELOPER }
    trait(:master)    { access_level ProjectMember::MASTER }
11
    trait(:access_request) { requested_at Time.now }
12 13
  end
end