Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/projects/files/download_buttons_spec.rb')
-rw-r--r--spec/features/projects/files/download_buttons_spec.rb11
1 files changed, 7 insertions, 4 deletions
diff --git a/spec/features/projects/files/download_buttons_spec.rb b/spec/features/projects/files/download_buttons_spec.rb
index 60c2ffedce0..be5cebcd7c9 100644
--- a/spec/features/projects/files/download_buttons_spec.rb
+++ b/spec/features/projects/files/download_buttons_spec.rb
@@ -5,12 +5,15 @@ feature 'Download buttons in files tree', feature: true do
given(:role) { :developer }
given(:status) { 'success' }
given(:project) { create(:project) }
+
given(:pipeline) do
- create(:ci_pipeline, project: project,
- sha: project.commit.sha,
- ref: project.default_branch,
- status: status)
+ create(:ci_pipeline,
+ project: project,
+ sha: project.commit.sha,
+ ref: project.default_branch,
+ status: status)
end
+
given!(:build) do
create(:ci_build, :success, :artifacts,
pipeline: pipeline,