summaryrefslogtreecommitdiff
path: root/features/steps
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2018-02-06 12:02:12 +0000
committerNick Thomas <nick@gitlab.com>2018-02-06 12:39:51 +0000
commit0f5ccd38a1b84185bae09c6e80baf8ea21fcee30 (patch)
tree5353571d6219099c3a7c94f1019135539b71b441 /features/steps
parent9483cbab26ad239c7a102f887177aaf354c9d13c (diff)
downloadgitlab-ce-0f5ccd38a1b84185bae09c6e80baf8ea21fcee30.tar.gz
Fix a hardcoded pipeline ID in a spinach step
Diffstat (limited to 'features/steps')
-rw-r--r--features/steps/project/commits/commits.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/features/steps/project/commits/commits.rb b/features/steps/project/commits/commits.rb
index bd3011b1cd8..959cf7d3e54 100644
--- a/features/steps/project/commits/commits.rb
+++ b/features/steps/project/commits/commits.rb
@@ -154,8 +154,8 @@ class Spinach::Features::ProjectCommits < Spinach::FeatureSteps
step 'commit has ci status' do
@project.enable_ci
- pipeline = create :ci_pipeline, project: @project, sha: sample_commit.id
- create :ci_build, pipeline: pipeline
+ @pipeline = create(:ci_pipeline, project: @project, sha: sample_commit.id)
+ create(:ci_build, pipeline: @pipeline)
end
step 'repository contains ".gitlab-ci.yml" file' do
@@ -163,7 +163,7 @@ class Spinach::Features::ProjectCommits < Spinach::FeatureSteps
end
step 'I see commit ci info' do
- expect(page).to have_content "Pipeline #1 pending"
+ expect(page).to have_content "Pipeline ##{@pipeline.id} pending"
end
step 'I search "submodules" commits' do