BigW Consortium Gitlab

project_members.rb 454 Bytes
Newer Older
1 2 3 4
FactoryGirl.define do
  factory :project_member do
    user
    project
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
    master

    trait :guest do
      access_level ProjectMember::GUEST
    end

    trait :reporter do
      access_level ProjectMember::REPORTER
    end

    trait :developer do
      access_level ProjectMember::DEVELOPER
    end

    trait :master do
      access_level ProjectMember::MASTER
    end

    trait :owner do
      access_level ProjectMember::OWNER
    end
26 27
  end
end