diff options
author | Nick Thomas <nick@gitlab.com> | 2016-11-11 12:51:50 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2016-11-11 15:45:47 +0000 |
commit | d211011698016bd4f04bc32e7450d6df470ea0c2 (patch) | |
tree | bf6a1309c933dbff7c1c16ee3ee6ee199d8bffbd /spec/factories/projects.rb | |
parent | 64d2eff9ccf716395d101f2ac91db44c47d7394e (diff) | |
download | gitlab-ce-d211011698016bd4f04bc32e7450d6df470ea0c2.tar.gz |
Make access request specs explicitly enable or disable access requests as required
Diffstat (limited to 'spec/factories/projects.rb')
-rw-r--r-- | spec/factories/projects.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories/projects.rb b/spec/factories/projects.rb index bfd88a254f1..1166498ddff 100644 --- a/spec/factories/projects.rb +++ b/spec/factories/projects.rb @@ -24,6 +24,10 @@ FactoryGirl.define do visibility_level Gitlab::VisibilityLevel::PRIVATE end + trait :access_requestable do + request_access_enabled true + end + trait :empty_repo do after(:create) do |project| project.create_repository |