diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2015-12-28 12:34:47 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-14 12:48:14 +0100 |
commit | ece114e630f11a7d244ab55a0ffd49a1d2cbcb94 (patch) | |
tree | 2da3a45ec35c229329274db606bc3cc39c54b855 /spec/features | |
parent | 5ff7ec42dc8759717c485478261128d61ea70b9a (diff) | |
download | gitlab-ce-ece114e630f11a7d244ab55a0ffd49a1d2cbcb94.tar.gz |
Update artifacts download specs
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/builds_spec.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/features/builds_spec.rb b/spec/features/builds_spec.rb index 240e56839df..d37bd103714 100644 --- a/spec/features/builds_spec.rb +++ b/spec/features/builds_spec.rb @@ -80,7 +80,11 @@ describe "Builds" do visit namespace_project_build_path(@project.namespace, @project, @build) end - it { expect(page).to have_content 'Download artifacts' } + it 'has button to download artifacts' do + page.within('.artifacts') do + expect(page).to have_content 'Download' + end + end end end @@ -111,7 +115,7 @@ describe "Builds" do before do @build.update_attributes(artifacts_file: artifacts_file) visit namespace_project_build_path(@project.namespace, @project, @build) - click_link 'Download artifacts' + page.within('.artifacts') { click_link 'Download' } end it { expect(page.response_headers['Content-Type']).to eq(artifacts_file.content_type) } |