diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-08 03:09:30 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-08 03:09:30 +0300 |
commit | 060c842402c00f830a810702600cbe39dfa6cf62 (patch) | |
tree | 743bd65ac0c1d4d6518ae8cdd4af5718ec7fb890 /spec/factories/environments.rb | |
parent | 6867eff1f997a881cd3ea64109f7ba2d4b42fde4 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories/environments.rb')
-rw-r--r-- | spec/factories/environments.rb | 8 |
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' } |