summaryrefslogtreecommitdiff
path: root/db/fixtures/development
diff options
context:
space:
mode:
authortwonegatives <whitewhiteheaven@gmail.com>2016-12-13 01:13:14 +0300
committertwonegatives <whitewhiteheaven@gmail.com>2016-12-15 19:03:59 +0300
commit0a5427d7c2679640c816cdfea1ffc30a3e7b4dd8 (patch)
tree8689872fb9fdc00de0c4700d3c9ff5c80fb78367 /db/fixtures/development
parentada8b026ef55733a94821525249ed67a094d5521 (diff)
downloadgitlab-ce-0a5427d7c2679640c816cdfea1ffc30a3e7b4dd8.tar.gz
Made Ci::Builds to have same ref as Ci::Pipeline in dev fixtures
Diffstat (limited to 'db/fixtures/development')
-rw-r--r--db/fixtures/development/14_pipelines.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/fixtures/development/14_pipelines.rb b/db/fixtures/development/14_pipelines.rb
index 08ad3097d34..19e001854d2 100644
--- a/db/fixtures/development/14_pipelines.rb
+++ b/db/fixtures/development/14_pipelines.rb
@@ -115,7 +115,7 @@ class Gitlab::Seeder::Pipelines
def job_attributes(pipeline, opts)
{ name: 'test build', stage: 'test', stage_idx: stage_index(opts[:stage]),
- ref: 'master', tag: false, user: build_user, project: @project, pipeline: pipeline,
+ ref: pipeline.ref, tag: false, user: build_user, project: @project, pipeline: pipeline,
created_at: Time.now, updated_at: Time.now
}.merge(opts)
end