diff options
Diffstat (limited to 'spec/models/concerns/ci/has_status_spec.rb')
-rw-r--r-- | spec/models/concerns/ci/has_status_spec.rb | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/spec/models/concerns/ci/has_status_spec.rb b/spec/models/concerns/ci/has_status_spec.rb index 4ef690ca4c1..5e0a430aa13 100644 --- a/spec/models/concerns/ci/has_status_spec.rb +++ b/spec/models/concerns/ci/has_status_spec.rb @@ -393,24 +393,26 @@ RSpec.describe Ci::HasStatus, feature_category: :continuous_integration do subject { object.blocked? } %w[ci_pipeline ci_stage ci_build generic_commit_status].each do |type| - let(:object) { build(type, status: status) } + context "when #{type}" do + let(:object) { build(type, status: status) } - context 'when status is scheduled' do - let(:status) { :scheduled } + context 'when status is scheduled' do + let(:status) { :scheduled } - it { is_expected.to be_truthy } - end + it { is_expected.to be_truthy } + end - context 'when status is manual' do - let(:status) { :manual } + context 'when status is manual' do + let(:status) { :manual } - it { is_expected.to be_truthy } - end + it { is_expected.to be_truthy } + end - context 'when status is created' do - let(:status) { :created } + context 'when status is created' do + let(:status) { :created } - it { is_expected.to be_falsy } + it { is_expected.to be_falsy } + end end end end |