Commit 4e1281a1 authored by Kamil Trzciński's avatar Kamil Trzciński

Fix rubocop

parent 41abc03f
...@@ -84,7 +84,7 @@ module Gitlab ...@@ -84,7 +84,7 @@ module Gitlab
status[@allow_failure_key] && status[@allow_failure_key] &&
HasStatus::PASSED_WITH_WARNINGS_STATUSES.include?(status[@status_key]) HasStatus::PASSED_WITH_WARNINGS_STATUSES.include?(status[@status_key])
end end
def exclude_from_calculation?(status) def exclude_from_calculation?(status)
@allow_failure_key && @allow_failure_key &&
status[@allow_failure_key] && status[@allow_failure_key] &&
......
...@@ -1143,12 +1143,12 @@ describe Ci::Pipeline, :mailer do ...@@ -1143,12 +1143,12 @@ describe Ci::Pipeline, :mailer do
where(:ci_composite_status) do where(:ci_composite_status) do
[false, true] [false, true]
end end
with_them do with_them do
before do before do
stub_feature_flags(ci_composite_status: ci_composite_status) stub_feature_flags(ci_composite_status: ci_composite_status)
end end
context 'stages list' do context 'stages list' do
it 'returns ordered list of stages' do it 'returns ordered list of stages' do
expect(subject.map(&:name)).to eq(%w[build test deploy]) expect(subject.map(&:name)).to eq(%w[build test deploy])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment