diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-06 14:43:32 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-06 14:43:32 +0100 |
commit | c4d5b231ed5888367912db000ebd8e2856709bc0 (patch) | |
tree | 87c8eb81df3bf9d132563c3c22af55a1c73e48f7 /spec/models/ci/build_spec.rb | |
parent | a004a9743a356597b97cc38103bd193cf6660753 (diff) | |
download | gitlab-ce-c4d5b231ed5888367912db000ebd8e2856709bc0.tar.gz |
Ignore optional actions when calculating warnings
Diffstat (limited to 'spec/models/ci/build_spec.rb')
-rw-r--r-- | spec/models/ci/build_spec.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb index 30870873440..900fd69e32f 100644 --- a/spec/models/ci/build_spec.rb +++ b/spec/models/ci/build_spec.rb @@ -611,13 +611,21 @@ describe Ci::Build, :models do it { is_expected.to be_falsey } end - context 'and build.status is failed' do + context 'and build status is failed' do before do build.status = 'failed' end it { is_expected.to be_truthy } end + + context 'when build is a manual action' do + before do + build.status = 'manual' + end + + it { is_expected.to be_falsey } + end end end |