summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-06-07 16:40:15 +0200
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2017-01-31 22:55:32 +0000
commit109553afd0ba80d47a282eb5e68ce3b5eda1d818 (patch)
treebfca03be4e7aeb093fd000d346ae6bf79265fc2a /features
parentc3e483b05b11e862dfe14104c8ba63cbdb11d953 (diff)
downloadgitlab-ce-109553afd0ba80d47a282eb5e68ce3b5eda1d818.tar.gz
Fix EE specs after ci_commit rename to pipeline
Diffstat (limited to 'features')
-rw-r--r--features/steps/project/pages.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/features/steps/project/pages.rb b/features/steps/project/pages.rb
index 34f97f1ea8b..a76672168fb 100644
--- a/features/steps/project/pages.rb
+++ b/features/steps/project/pages.rb
@@ -27,13 +27,13 @@ class Spinach::Features::ProjectPages < Spinach::FeatureSteps
end
step 'pages are deployed' do
- commit = @project.ensure_ci_commit(@project.commit('HEAD').sha)
+ pipeline = @project.ensure_pipeline(@project.commit('HEAD').sha, 'HEAD')
build = build(:ci_build,
- project: @project,
- commit: commit,
- ref: 'HEAD',
- artifacts_file: fixture_file_upload(Rails.root + 'spec/fixtures/pages.zip'),
- artifacts_metadata: fixture_file_upload(Rails.root + 'spec/fixtures/pages.zip.meta')
+ project: @project,
+ pipeline: pipeline,
+ ref: 'HEAD',
+ 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)