diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-12-06 21:24:11 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-12-06 21:24:11 +0900 |
commit | 3b11df7bee6d574488a394b46ced22a824d5081d (patch) | |
tree | 4c40f161a9adc54a5d03eb88459d0afdfed97e54 | |
parent | cd23850e0002f6c39b0c7f97c1dc484d7993af04 (diff) | |
download | gitlab-ce-3b11df7bee6d574488a394b46ced22a824d5081d.tar.gz |
Fix pipeline
-rw-r--r-- | spec/models/ci/pipeline_spec.rb | 4 |
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 |