summaryrefslogtreecommitdiff
path: root/spec/factories/environments.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-08 00:09:30 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-08 00:09:30 +0000
commit060c842402c00f830a810702600cbe39dfa6cf62 (patch)
tree743bd65ac0c1d4d6518ae8cdd4af5718ec7fb890 /spec/factories/environments.rb
parent6867eff1f997a881cd3ea64109f7ba2d4b42fde4 (diff)
downloadgitlab-ce-060c842402c00f830a810702600cbe39dfa6cf62.tar.gz
Add latest changes from gitlab-org/gitlab@master
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 998672ebe7c..050cb8f8e6c 100644
--- a/spec/factories/environments.rb
+++ b/spec/factories/environments.rb
@@ -7,6 +7,14 @@ FactoryBot.define do
association :project, :repository
sequence(:external_url) { |n| "https://env#{n}.example.gitlab.com" }
+ trait :available do
+ state { :available }
+ end
+
+ trait :stopped do
+ state { :stopped }
+ end
+
trait :with_review_app do |environment|
transient do
ref { 'master' }