Fix test for processing pipeline after retrying build

This commit is contained in:
Grzegorz Bizon 2016-08-19 14:34:40 +02:00
parent b18afa835b
commit d147ebf3f8
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ describe Ci::ProcessPipelineService, services: true do
expect(builds.pluck(:name))
.to contain_exactly('build:1', 'build:2', 'test:1', 'test:2')
Ci::Build.retry(pipeline.builds.find_by(name: 'test:2'))
Ci::Build.retry(pipeline.builds.find_by(name: 'test:2')).success
expect(builds.pluck(:name)).to contain_exactly(
'build:1', 'build:2', 'test:1', 'test:2', 'test:2', 'deploy:1', 'deploy:2')