summaryrefslogtreecommitdiff
path: root/spec/features/projects/main/download_buttons_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/projects/main/download_buttons_spec.rb')
-rw-r--r--spec/features/projects/main/download_buttons_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/features/projects/main/download_buttons_spec.rb b/spec/features/projects/main/download_buttons_spec.rb
index b26c0ea7a14..227ccf9459c 100644
--- a/spec/features/projects/main/download_buttons_spec.rb
+++ b/spec/features/projects/main/download_buttons_spec.rb
@@ -33,7 +33,11 @@ feature 'Download buttons in project main page', feature: true do
end
scenario 'shows download artifacts button' do
- expect(page).to have_link "Download '#{build.name}'"
+ href = latest_succeeded_namespace_project_artifacts_path(
+ project.namespace, project, "#{project.default_branch}/download",
+ job: 'build')
+
+ expect(page).to have_link "Download '#{build.name}'", href: href
end
end
end