diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-08-23 14:20:48 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-08-23 14:20:48 +0200 |
commit | 3c2bcf258ce2171617c0b89a2343a96586b750d2 (patch) | |
tree | 7e3fa8fc0bcbb0633c94ce7c8a2373cfc0e6cc60 /features | |
parent | f90659109487b0dd5303e5072feb86f10976ecae (diff) | |
download | gitlab-ce-3c2bcf258ce2171617c0b89a2343a96586b750d2.tar.gz |
Fix feature specs for pages deploymentbackstage/gb/after-save-asynchronous-job-hooks
Diffstat (limited to 'features')
-rw-r--r-- | features/steps/project/pages.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/features/steps/project/pages.rb b/features/steps/project/pages.rb index 275fb4fc010..bb69c0d6e99 100644 --- a/features/steps/project/pages.rb +++ b/features/steps/project/pages.rb @@ -35,7 +35,10 @@ class Spinach::Features::ProjectPages < Spinach::FeatureSteps end step 'pages are deployed' do - pipeline = @project.pipelines.create(ref: 'HEAD', sha: @project.commit('HEAD').sha) + pipeline = @project.pipelines.create(ref: 'HEAD', + sha: @project.commit('HEAD').sha, + source: :push) + build = build(:ci_build, project: @project, pipeline: pipeline, @@ -43,6 +46,7 @@ class Spinach::Features::ProjectPages < Spinach::FeatureSteps artifacts_file: fixture_file_upload(Rails.root + 'spec/fixtures/pages.zip'), artifacts_metadata: fixture_file_upload(Rails.root + 'spec/fixtures/pages.zip.meta') ) + result = ::Projects::UpdatePagesService.new(@project, build).execute expect(result[:status]).to eq(:success) end |