diff options
author | Robert Speicher <rspeicher@gmail.com> | 2014-03-19 13:14:27 +0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2014-03-19 13:14:27 +0400 |
commit | 65d634706cf833fc4b0b2f263f9d8fb35219858e (patch) | |
tree | 85c05ae5ab962381dfa142e3480769ca60e363ad /spec/factories.rb | |
parent | 046773d6e53035599544de4f85906bf706eab7d1 (diff) |
Add public/private/internal traits to :project Factory
Diffstat (limited to 'spec/factories.rb')
-rw-r--r-- | spec/factories.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/factories.rb b/spec/factories.rb index 7fc2b7c5e97..adde72d2e1e 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -32,6 +32,18 @@ FactoryGirl.define do path { name.downcase.gsub(/\s/, '_') } namespace creator + + trait :public do + visibility_level Gitlab::VisibilityLevel::PUBLIC + end + + trait :internal do + visibility_level Gitlab::VisibilityLevel::INTERNAL + end + + trait :private do + visibility_level Gitlab::VisibilityLevel::PRIVATE + end end # Generates a test repository from the repository stored under `spec/seed_project.tar.gz`. |