diff options
author | Stan Hu <stanhu@gmail.com> | 2015-03-03 19:01:27 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-03-04 02:57:28 +0300 |
commit | 2088cee935e47b569f0c79b10dcb2c506b666af3 (patch) | |
tree | fbf6fc64436dcb8c72b1bd506320757f84495433 /spec | |
parent | abc69c890513fb58c1ceae7548f4fbcc221b7c34 (diff) |
Fix URL builder to use GitlabRoutingHelper
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/url_builder_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/url_builder_spec.rb b/spec/lib/gitlab/url_builder_spec.rb index 518239fab6d..94b2fd5508e 100644 --- a/spec/lib/gitlab/url_builder_spec.rb +++ b/spec/lib/gitlab/url_builder_spec.rb @@ -13,7 +13,7 @@ describe Gitlab::UrlBuilder do it 'returns the merge request url' do merge_request = create(:merge_request) url = Gitlab::UrlBuilder.new(:merge_request).build(merge_request.id) - expect(url).to eq "#{Settings.gitlab['url']}/#{merge_request.project.to_param}/merge_requests/#{merge_request.id}" + expect(url).to eq "#{Settings.gitlab['url']}/#{merge_request.project.path_with_namespace}/merge_requests/#{merge_request.iid}" end end end |