From 7a57ee5d47aee3cd55212084cade048b933a584d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Coutable?= Date: Thu, 26 Jan 2017 13:09:29 +0100 Subject: [PATCH] Ensure we have a project with a repo in GitlabMarkdownHelper specs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémy Coutable --- spec/helpers/gitlab_markdown_helper_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/helpers/gitlab_markdown_helper_spec.rb b/spec/helpers/gitlab_markdown_helper_spec.rb index 87c03236031..b8ec3521edb 100644 --- a/spec/helpers/gitlab_markdown_helper_spec.rb +++ b/spec/helpers/gitlab_markdown_helper_spec.rb @@ -56,8 +56,7 @@ describe GitlabMarkdownHelper do describe '#link_to_gfm' do let(:link) { '/commits/0a1b2c3d' } - let(:issues) { create_list(:issue, 2) } - let(:project) { issues.first.project } + let(:issues) { create_list(:issue, 2, project: project) } 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)