Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-01-26 15:09:29 +0300
committerRémy Coutable <remy@rymai.me>2017-01-26 15:09:29 +0300
commit7a57ee5d47aee3cd55212084cade048b933a584d (patch)
tree2d3afe51d31cc3874d788ad6771cdd973793dada
parentde08c73f9b2def0a433e2af7ff0888466a2006db (diff)
Ensure we have a project with a repo in GitlabMarkdownHelper specs
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r--spec/helpers/gitlab_markdown_helper_spec.rb3
1 files changed, 1 insertions, 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)