summaryrefslogtreecommitdiff
path: root/spec/views
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-10-07 21:07:54 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-10-07 21:07:54 +0000
commit8c8b94e7116fa478ad490bd14c09565d23097f57 (patch)
tree9e4637aa0fe498a5523c86932b87ff691ec72af6 /spec/views
parenteadb77d89f5f7d445bfd326f18873168f4719f12 (diff)
downloadgitlab-ce-8c8b94e7116fa478ad490bd14c09565d23097f57.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/views')
-rw-r--r--spec/views/projects/tags/index.html.haml_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/views/projects/tags/index.html.haml_spec.rb b/spec/views/projects/tags/index.html.haml_spec.rb
index 34355e27544..7e372ae8d6d 100644
--- a/spec/views/projects/tags/index.html.haml_spec.rb
+++ b/spec/views/projects/tags/index.html.haml_spec.rb
@@ -23,6 +23,11 @@ describe 'projects/tags/index' do
expect(rendered).to have_button('Last updated')
end
+ it 'renders links to the Releases page for tags associated with a release' do
+ render
+ expect(rendered).to have_link(release.name, href: project_releases_path(project, anchor: release.tag))
+ end
+
context 'when the most recent build for a tag has artifacts' do
let!(:build) { create(:ci_build, :success, :artifacts, pipeline: pipeline) }