| ... | @@ -32,6 +32,18 @@ FactoryGirl.define do |
... | @@ -32,6 +32,18 @@ FactoryGirl.define do |
|
|
path { name.downcase.gsub(/\s/, '_') }
|
|
path { name.downcase.gsub(/\s/, '_') }
|
|
|
namespace
|
|
namespace
|
|
|
creator
|
|
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
|
|
end
|
|
|
|
|
|
|
|
# Generates a test repository from the repository stored under `spec/seed_project.tar.gz`.
|
|
# Generates a test repository from the repository stored under `spec/seed_project.tar.gz`.
|
| ... | |
... | |
| ... | | ... | |