summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEtienne BaquƩ <ebaque@gitlab.com>2019-09-09 10:48:18 -0400
committerEtienne BaquƩ <ebaque@gitlab.com>2019-09-09 11:26:51 -0400
commit76e1cbd897a9257209a741f3dacbc470531c5615 (patch)
tree7e4429aa2f0841ee7046b24afc3f158422a00a08
parent5075978ed6bdce9e86fccc1639535c53d3275f92 (diff)
downloadgitlab-ce-ebaque-issue-mr-urls.tar.gz
Fixed spec and helper based on review commentsebaque-issue-mr-urls
-rw-r--r--app/helpers/releases_helper.rb4
-rw-r--r--changelogs/unreleased/ebaque-issue-mr-urls.yml5
-rw-r--r--spec/helpers/releases_helper_spec.rb8
3 files changed, 6 insertions, 11 deletions
diff --git a/app/helpers/releases_helper.rb b/app/helpers/releases_helper.rb
index e1d8b4a67c4..4d9fe345edf 100644
--- a/app/helpers/releases_helper.rb
+++ b/app/helpers/releases_helper.rb
@@ -13,11 +13,11 @@ module ReleasesHelper
end
def url_for_merge_requests
- Gitlab::Routing.url_helpers.project_merge_requests_url(@project, params_for_issue_and_mr_paths)
+ project_merge_requests_url(@project, params_for_issue_and_mr_paths)
end
def url_for_issues
- Gitlab::Routing.url_helpers.project_issues_url(@project, params_for_issue_and_mr_paths)
+ project_issues_url(@project, params_for_issue_and_mr_paths)
end
def data_for_releases_page
diff --git a/changelogs/unreleased/ebaque-issue-mr-urls.yml b/changelogs/unreleased/ebaque-issue-mr-urls.yml
deleted file mode 100644
index 67d46d92b5c..00000000000
--- a/changelogs/unreleased/ebaque-issue-mr-urls.yml
+++ /dev/null
@@ -1,5 +0,0 @@
----
-title: Provide paths for Merge Requests and Issue links in Releases page
-merge_request: 32401
-author:
-type: added
diff --git a/spec/helpers/releases_helper_spec.rb b/spec/helpers/releases_helper_spec.rb
index 30ff45edb40..ff820b3cc95 100644
--- a/spec/helpers/releases_helper_spec.rb
+++ b/spec/helpers/releases_helper_spec.rb
@@ -24,15 +24,15 @@ describe ReleasesHelper do
describe '#url_for_merge_requests' do
it 'returns the the correct link with the correct parameters' do
- url = "#{project.group.path}/#{project.path}/merge_requests?scope=all&state=opened"
- expect(helper.url_for_merge_requests).to include(url)
+ path = "#{project.group.path}/#{project.path}/merge_requests?scope=all&state=opened"
+ expect(helper.url_for_merge_requests).to include(path)
end
end
describe '#url_for_issues' do
it 'returns the the correct link with the correct parameters' do
- url = "#{project.group.path}/#{project.path}/issues?scope=all&state=opened"
- expect(helper.url_for_issues).to include(url)
+ path = "#{project.group.path}/#{project.path}/issues?scope=all&state=opened"
+ expect(helper.url_for_issues).to include(path)
end
end