summaryrefslogtreecommitdiff
path: root/spec/factories
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-05-25 15:34:03 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-05-25 15:34:03 +0800
commit3e190d80310d900beaf42881e933ae4d3c2811a0 (patch)
tree26c110aceab0eff2f6c16af54531903b1553c123 /spec/factories
parentcafe62b84a9c806535d604ff21c76548b6b06b68 (diff)
downloadgitlab-ce-3e190d80310d900beaf42881e933ae4d3c2811a0.tar.gz
Fix tests for adding environment_url
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/ci/builds.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/factories/ci/builds.rb b/spec/factories/ci/builds.rb
index f5e99fdf00b..aeabb57c512 100644
--- a/spec/factories/ci/builds.rb
+++ b/spec/factories/ci/builds.rb
@@ -63,8 +63,10 @@ FactoryGirl.define do
trait :teardown_environment do
environment 'staging'
+ environment_url 'http://staging.example.com/$CI_JOB_NAME'
options environment: { name: 'staging',
- action: 'stop' }
+ action: 'stop',
+ url: 'http://staging.example.com/$CI_JOB_NAME' }
end
trait :allowed_to_fail do