diff options
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' } |