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

Fix rubocop

parent 41abc03f
......@@ -84,7 +84,7 @@ module Gitlab
status[@allow_failure_key] &&
HasStatus::PASSED_WITH_WARNINGS_STATUSES.include?(status[@status_key])
end
def exclude_from_calculation?(status)
@allow_failure_key &&
status[@allow_failure_key] &&
......
......@@ -1143,12 +1143,12 @@ describe Ci::Pipeline, :mailer do
where(:ci_composite_status) do
[false, true]
end
with_them do
before do
stub_feature_flags(ci_composite_status: ci_composite_status)
end
context 'stages list' do
it 'returns ordered list of stages' do
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