summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-12-06 21:24:11 +0900
committerShinya Maeda <shinya@gitlab.com>2017-12-06 21:24:11 +0900
commit3b11df7bee6d574488a394b46ced22a824d5081d (patch)
tree4c40f161a9adc54a5d03eb88459d0afdfed97e54
parentcd23850e0002f6c39b0c7f97c1dc484d7993af04 (diff)
downloadgitlab-ce-3b11df7bee6d574488a394b46ced22a824d5081d.tar.gz
Fix pipeline
-rw-r--r--spec/models/ci/pipeline_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/models/ci/pipeline_spec.rb b/spec/models/ci/pipeline_spec.rb
index d4b1e7c8dd4..bb89e093890 100644
--- a/spec/models/ci/pipeline_spec.rb
+++ b/spec/models/ci/pipeline_spec.rb
@@ -1244,7 +1244,7 @@ describe Ci::Pipeline, :mailer do
describe '#execute_hooks' do
let!(:build_a) { create_build('a', 0) }
- let!(:build_b) { create_build('b', 1) }
+ let!(:build_b) { create_build('b', 0) }
let!(:hook) do
create(:project_hook, project: project, pipeline_events: enabled)
@@ -1300,6 +1300,8 @@ describe Ci::Pipeline, :mailer do
end
context 'when stage one failed' do
+ let!(:build_b) { create_build('b', 1) }
+
before do
build_a.drop
end