Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-08-11 18:23:35 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-08-11 18:23:35 +0300
commit99928aca755f4ccf98a58445a0176b80cd16159c (patch)
tree31afc0e00d0034dd554743b130d7eb481576e393 /spec/lib/gitlab/data_builder
parentffa75a497a23bf6f87de626fee08ff4538a12587 (diff)
Enhance a pipeline event tests to analyse number of returned builds
Diffstat (limited to 'spec/lib/gitlab/data_builder')
-rw-r--r--spec/lib/gitlab/data_builder/pipeline_data_builder_spec.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/lib/gitlab/data_builder/pipeline_data_builder_spec.rb b/spec/lib/gitlab/data_builder/pipeline_data_builder_spec.rb
index 24d39b318c0..8a2f00c4347 100644
--- a/spec/lib/gitlab/data_builder/pipeline_data_builder_spec.rb
+++ b/spec/lib/gitlab/data_builder/pipeline_data_builder_spec.rb
@@ -3,11 +3,15 @@ require 'spec_helper'
describe Gitlab::DataBuilder::PipelineDataBuilder do
let(:user) { create(:user) }
let(:project) { create(:project) }
+
let(:pipeline) do
create(:ci_pipeline,
- project: project, status: 'success',
- sha: project.commit.sha, ref: project.default_branch)
+ project: project,
+ status: 'success',
+ sha: project.commit.sha,
+ ref: project.default_branch)
end
+
let!(:build) { create(:ci_build, pipeline: pipeline) }
describe '.build' do