mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 23:56:09 +10:00
Make the following changes to deal with new behavior in Rails 4.1.2: * Use nested resources to avoid slashes in arguments to path helpers.
12 lines
344 B
Ruby
12 lines
344 B
Ruby
require 'spec_helper'
|
|
|
|
describe Gitlab::UrlBuilder do
|
|
describe 'When asking for an issue' 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']}/#{issue.project.path_with_namespace}/issues/#{issue.iid}"
|
|
end
|
|
end
|
|
end
|