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:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-21 20:49:18 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-21 20:49:56 +0300
commitc3a621819390971bb1ebd63ece22d43d94d64f63 (patch)
treef2d2c896c3c183ad32769ee7447243501648c572 /spec/models/ci
parent3fdba5c96bcc3ccc8623f007127c530b1472b10f (diff)
Improve helpers in pipeline model specs
Diffstat (limited to 'spec/models/ci')
-rw-r--r--spec/models/ci/pipeline_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/ci/pipeline_spec.rb b/spec/models/ci/pipeline_spec.rb
index edefd258c06..675be77eafd 100644
--- a/spec/models/ci/pipeline_spec.rb
+++ b/spec/models/ci/pipeline_spec.rb
@@ -328,7 +328,7 @@ describe Ci::Pipeline, models: true do
context 'when pipeline becomes blocked' do
let!(:build) { create_build('build:1') }
- let!(:action) { create(:ci_build, :manual, pipeline: pipeline) }
+ let!(:action) { create_build('manual:action', :manual) }
before do
travel_to(current + 1.minute) do
@@ -407,8 +407,8 @@ describe Ci::Pipeline, models: true do
end
end
- def create_build(name, queued_at: current, started_from: 0, **opts)
- create(:ci_build,
+ def create_build(name, *traits, queued_at: current, started_from: 0, **opts)
+ create(:ci_build, *traits,
name: name,
pipeline: pipeline,
queued_at: queued_at,