Commit a263e370 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Improve specs for calculating pipeline result status

parent 305064a6
...@@ -185,11 +185,13 @@ describe CommitStatus, :models do ...@@ -185,11 +185,13 @@ describe CommitStatus, :models do
create_status(allow_failure: true, status: 'success'), create_status(allow_failure: true, status: 'success'),
create_status(allow_failure: true, status: 'failed'), create_status(allow_failure: true, status: 'failed'),
create_status(allow_failure: false, status: 'success'), create_status(allow_failure: false, status: 'success'),
create_status(allow_failure: false, status: 'failed')] create_status(allow_failure: false, status: 'failed'),
create_status(allow_failure: true, status: 'manual'),
create_status(allow_failure: false, status: 'manual')]
end end
it 'returns statuses without what we want to ignore' do it 'returns statuses without what we want to ignore' do
is_expected.to eq(statuses.values_at(0, 1, 2, 3, 4, 5, 6, 8, 9)) is_expected.to eq(statuses.values_at(0, 1, 2, 3, 4, 5, 6, 8, 9, 11))
end end
end end
......
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