diff options
Diffstat (limited to 'spec/helpers/gitlab_routing_helper_spec.rb')
-rw-r--r-- | spec/helpers/gitlab_routing_helper_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/helpers/gitlab_routing_helper_spec.rb b/spec/helpers/gitlab_routing_helper_spec.rb index 0088f739879..f23ffcee35d 100644 --- a/spec/helpers/gitlab_routing_helper_spec.rb +++ b/spec/helpers/gitlab_routing_helper_spec.rb @@ -322,4 +322,14 @@ RSpec.describe GitlabRoutingHelper do end end end + + context 'releases' do + let(:release) { create(:release) } + + describe '#release_url' do + it 'returns the url for the release page' do + expect(release_url(release)).to eq("http://test.host/#{release.project.full_path}/-/releases/#{release.tag}") + end + end + end end |