Ensure we have a project with a repo in GitlabMarkdownHelper specs

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2017-01-26 13:09:29 +01:00
parent de08c73f9b
commit 7a57ee5d47
No known key found for this signature in database
GPG key ID: 46DF07E5CD9E96AB

View file

@ -56,8 +56,7 @@ describe GitlabMarkdownHelper do
describe '#link_to_gfm' do describe '#link_to_gfm' do
let(:link) { '/commits/0a1b2c3d' } let(:link) { '/commits/0a1b2c3d' }
let(:issues) { create_list(:issue, 2) } let(:issues) { create_list(:issue, 2, project: project) }
let(:project) { issues.first.project }
it 'handles references nested in links with all the text' do it 'handles references nested in links with all the text' do
actual = helper.link_to_gfm("This should finally fix #{issues[0].to_reference} and #{issues[1].to_reference} for real", link) actual = helper.link_to_gfm("This should finally fix #{issues[0].to_reference} and #{issues[1].to_reference} for real", link)