Commit 8880c55a authored by Jeroen van Baarsen's avatar Jeroen van Baarsen

Fixed the spec

Signed-off-by: default avatarJeroen van Baarsen <jeroenvanbaarsen@gmail.com>
parent 87760a29
...@@ -5,7 +5,7 @@ describe Gitlab::UrlBuilder do ...@@ -5,7 +5,7 @@ describe Gitlab::UrlBuilder do
it 'returns the issue url' do it 'returns the issue url' do
issue = create(:issue) issue = create(:issue)
url = Gitlab::UrlBuilder.new(:issue).build(issue.id) 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 end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment