Commit 0b5e1392 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Extend compound status for manual actions specs

parent f441b95b
...@@ -110,7 +110,7 @@ describe HasStatus do ...@@ -110,7 +110,7 @@ describe HasStatus do
it { is_expected.to eq 'running' } it { is_expected.to eq 'running' }
end end
context 'when pipeline is in transition between stages' do context 'when one status finished and second is still created' do
let!(:statuses) do let!(:statuses) do
[create(type, status: :success), create(type, status: :created)] [create(type, status: :success), create(type, status: :created)]
end end
...@@ -118,6 +118,16 @@ describe HasStatus do ...@@ -118,6 +118,16 @@ describe HasStatus do
it { is_expected.to eq 'running' } it { is_expected.to eq 'running' }
end end
context 'when there is a manual status before created status' do
let!(:statuses) do
[create(type, status: :success),
create(type, status: :manual, allow_failure: false),
create(type, status: :created)]
end
it { is_expected.to eq 'manual' }
end
context 'when one status is a blocking manual action' do context 'when one status is a blocking manual action' do
let!(:statuses) do let!(:statuses) do
[create(type, status: :failed), [create(type, status: :failed),
......
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