diff options
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/ci/retry_pipeline_service_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/ci/retry_pipeline_service_spec.rb b/spec/services/ci/retry_pipeline_service_spec.rb index 7db871adc9a..81a0b05f2c7 100644 --- a/spec/services/ci/retry_pipeline_service_spec.rb +++ b/spec/services/ci/retry_pipeline_service_spec.rb @@ -87,7 +87,7 @@ describe Ci::RetryPipelineService, '#execute' do it 'creates a new job for report job in this case' do service.execute(pipeline) - expect(statuses.where(name: 'report 1').first).to be_retried + expect(statuses.find_by(name: 'report 1', status: 'failed')).to be_retried end end |