Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/projects.rb')
-rw-r--r--spec/factories/projects.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/factories/projects.rb b/spec/factories/projects.rb
index 299dd165807..c078514514b 100644
--- a/spec/factories/projects.rb
+++ b/spec/factories/projects.rb
@@ -535,4 +535,11 @@ FactoryBot.define do
trait :in_subgroup do
namespace factory: [:group, :nested]
end
+
+ trait :readme do
+ custom_repo
+
+ name { 'gitlab-profile' }
+ files { { 'README.md' => 'Hello World' } }
+ end
end