BigW Consortium Gitlab

group_members.rb 470 Bytes
Newer Older
1
FactoryGirl.define do
2 3
  factory :group_member do
    access_level { GroupMember::OWNER }
4 5
    group
    user
6 7 8 9 10 11

    trait(:guest)     { access_level GroupMember::GUEST }
    trait(:reporter)  { access_level GroupMember::REPORTER }
    trait(:developer) { access_level GroupMember::DEVELOPER }
    trait(:master)    { access_level GroupMember::MASTER }
    trait(:owner)     { access_level GroupMember::OWNER }
12
    trait(:access_request) { requested_at Time.now }
13 14
  end
end