summaryrefslogtreecommitdiff
path: root/app/models/releases
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2019-01-02 15:01:15 +0900
committerShinya Maeda <shinya@gitlab.com>2019-01-04 22:17:02 +0900
commitf5f52da885f331b9860c2cc1fe1847fd10ca9385 (patch)
tree6ad5e46438ca6f05e98e3caa0318f332eb7437d9 /app/models/releases
parent8a75453ea0553b712963161e79177513e17ca376 (diff)
downloadgitlab-ce-f5f52da885f331b9860c2cc1fe1847fd10ca9385.tar.gz
Add spec for Releases::Source and Link models
Releases::Source and Releases::Link are covered by tests
Diffstat (limited to 'app/models/releases')
-rw-r--r--app/models/releases/source.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/releases/source.rb b/app/models/releases/source.rb
index dc0482002ac..254abf86e77 100644
--- a/app/models/releases/source.rb
+++ b/app/models/releases/source.rb
@@ -21,13 +21,13 @@ module Releases
Gitlab::Routing
.url_helpers
.project_archive_url(project,
- id: File.join(tag_name, archive_path),
+ id: File.join(tag_name, archive_prefix),
format: format)
end
private
- def archive_path
+ def archive_prefix
"#{project.path}-#{tag_name.tr('/', '-')}"
end
end