From 060c842402c00f830a810702600cbe39dfa6cf62 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 8 Apr 2020 00:09:30 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/factories/environments.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'spec/factories/environments.rb') 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' } -- cgit v1.2.1