BigW Consortium Gitlab

project_members.rb 419 Bytes
Newer Older
1 2 3
FactoryGirl.define do
  factory :project_member do
    user
4
    project factory: :empty_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