BigW Consortium Gitlab

group_members.rb 582 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 15 16 17 18

    trait(:invited) do
      user_id nil
      invite_token 'xxx'
      invite_email 'email@email.com'
    end
19 20
  end
end