diff options
author | Jeroen van Baarsen <jeroenvanbaarsen@gmail.com> | 2014-06-14 11:27:11 +0400 |
---|---|---|
committer | Jeroen van Baarsen <jeroenvanbaarsen@gmail.com> | 2014-06-14 11:27:11 +0400 |
commit | 8880c55a1ee35877abd7229e65b359116e33b5d1 (patch) | |
tree | 1c5d514449db4c11c87c1b7e145dead98832ec16 /spec/lib/gitlab | |
parent | 87760a290eddbc35f4e89b129da6ec842a70f609 (diff) |
Fixed the spec
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
Diffstat (limited to 'spec/lib/gitlab')
-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 1bc77e3d424..eb47bee8336 100644 --- a/spec/lib/gitlab/url_builder_spec.rb +++ b/spec/lib/gitlab/url_builder_spec.rb @@ -5,7 +5,7 @@ describe Gitlab::UrlBuilder do it 'returns the issue url' do issue = create(:issue) url = Gitlab::UrlBuilder.new(:issue).build(issue.id) - expect(url).to eq "#{Settings.gitlab['url']}/namespace1/gitlabhq/issues/#{issue.iid}" + expect(url).to eq "#{Settings.gitlab['url']}/#{issue.project.to_param}/issues/#{issue.iid}" end end end |