summaryrefslogtreecommitdiff
path: root/spec/features/projects/show/download_buttons_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/projects/show/download_buttons_spec.rb')
-rw-r--r--spec/features/projects/show/download_buttons_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/features/projects/show/download_buttons_spec.rb b/spec/features/projects/show/download_buttons_spec.rb
index fee5f8001b0..3a2dcc5aa55 100644
--- a/spec/features/projects/show/download_buttons_spec.rb
+++ b/spec/features/projects/show/download_buttons_spec.rb
@@ -35,10 +35,11 @@ describe 'Projects > Show > Download buttons' do
it 'shows download artifacts button' do
href = latest_succeeded_project_artifacts_path(project, "#{project.default_branch}/download", job: 'build')
- expect(page).to have_link build.name, href: href
+ expect(page).to have_link "Download '#{build.name}'", href: href
end
it 'download links have download attribute' do
+ expect(page).to have_selector('a', text: 'Download')
page.all('a', text: 'Download').each do |link|
expect(link[:download]).to eq ''
end