diff options
Diffstat (limited to 'spec/models/concerns/ci/artifactable_spec.rb')
-rw-r--r-- | spec/models/concerns/ci/artifactable_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/concerns/ci/artifactable_spec.rb b/spec/models/concerns/ci/artifactable_spec.rb index 62fc689a9ca..b27a4d0dcc1 100644 --- a/spec/models/concerns/ci/artifactable_spec.rb +++ b/spec/models/concerns/ci/artifactable_spec.rb @@ -68,8 +68,8 @@ RSpec.describe Ci::Artifactable do end describe '.expired' do - it 'returns a limited number of expired artifacts' do - expect(Ci::JobArtifact.expired(1).order_id_asc).to eq([recently_expired_artifact]) + it 'returns all expired artifacts' do + expect(Ci::JobArtifact.expired).to contain_exactly(recently_expired_artifact, later_expired_artifact) end end |