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/environments.rb')
-rw-r--r--spec/factories/environments.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/factories/environments.rb b/spec/factories/environments.rb
index 6f2cd4bf596..c4b318a5aee 100644
--- a/spec/factories/environments.rb
+++ b/spec/factories/environments.rb
@@ -35,6 +35,14 @@ FactoryBot.define do
name { 'development' }
end
+ trait :with_folders do |environment|
+ sequence(:name) { |n| "#{folder}/environment#{n}" }
+
+ transient do
+ folder { 'folder' }
+ end
+ end
+
trait :with_review_app do |environment|
sequence(:name) { |n| "review/#{n}" }