summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-08-11 17:23:35 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-08-11 17:23:35 +0200
commit99928aca755f4ccf98a58445a0176b80cd16159c (patch)
tree31afc0e00d0034dd554743b130d7eb481576e393 /spec/lib
parentffa75a497a23bf6f87de626fee08ff4538a12587 (diff)
downloadgitlab-ce-99928aca755f4ccf98a58445a0176b80cd16159c.tar.gz
Enhance a pipeline event tests to analyse number of returned builds
Diffstat (limited to 'spec/lib')
-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