diff options
Diffstat (limited to 'spec/models/concerns/ci/has_status_spec.rb')
-rw-r--r-- | spec/models/concerns/ci/has_status_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/models/concerns/ci/has_status_spec.rb b/spec/models/concerns/ci/has_status_spec.rb index b16420bc658..0709a050056 100644 --- a/spec/models/concerns/ci/has_status_spec.rb +++ b/spec/models/concerns/ci/has_status_spec.rb @@ -351,6 +351,18 @@ RSpec.describe Ci::HasStatus do it_behaves_like 'not containing the job', status end end + + describe '.complete' do + subject { CommitStatus.complete } + + described_class::COMPLETED_STATUSES.each do |status| + it_behaves_like 'containing the job', status + end + + described_class::ACTIVE_STATUSES.each do |status| + it_behaves_like 'not containing the job', status + end + end end describe '::DEFAULT_STATUS' do |