summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-03-03 08:01:27 -0800
committerStan Hu <stanhu@gmail.com>2015-03-03 15:57:28 -0800
commit2088cee935e47b569f0c79b10dcb2c506b666af3 (patch)
treefbf6fc64436dcb8c72b1bd506320757f84495433 /spec/lib
parentabc69c890513fb58c1ceae7548f4fbcc221b7c34 (diff)
downloadgitlab-ce-2088cee935e47b569f0c79b10dcb2c506b666af3.tar.gz
Fix URL builder to use GitlabRoutingHelper
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/gitlab/url_builder_spec.rb2
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