diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-08-09 21:24:33 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-08-09 21:24:33 +0200 |
commit | 86faee081d4e9e0e01a646e59bd6845ad5241a18 (patch) | |
tree | d6a43cf2f51ba423faf1740fa6b0c76017778d53 /features/steps | |
parent | 92c34e56b6f81ba46978ca38c579eb916e4953d5 (diff) | |
parent | ab3cfd520dc02a62dea2a8d73a4060fc1cbc865a (diff) | |
download | gitlab-ce-pipeline-hooks-without-touch.tar.gz |
Merge branch 'refactor-builds-creation-service' into pipeline-hooks-without-touchpipeline-hooks-without-touch
Diffstat (limited to 'features/steps')
-rw-r--r-- | features/steps/shared/builds.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/features/steps/shared/builds.rb b/features/steps/shared/builds.rb index 4d6b258f577..c7f61da05fa 100644 --- a/features/steps/shared/builds.rb +++ b/features/steps/shared/builds.rb @@ -10,20 +10,22 @@ module SharedBuilds end step 'project has a recent build' do - @pipeline = create(:ci_pipeline, project: @project, sha: @project.commit.sha, ref: 'master') + @pipeline = create(:ci_empty_pipeline, project: @project, sha: @project.commit.sha, ref: 'master') @build = create(:ci_build_with_coverage, pipeline: @pipeline) + @pipeline.reload_status! end step 'recent build is successful' do - @build.update(status: 'success') + @build.success end step 'recent build failed' do - @build.update(status: 'failed') + @build.drop end step 'project has another build that is running' do create(:ci_build, pipeline: @pipeline, name: 'second build', status: 'running') + @pipeline.reload_status! end step 'I visit recent build details page' do |