Commit aac239a3 authored by Markus Koller's avatar Markus Koller

Merge branch 'perf/use-build-stubbed' into 'master'

Use build_stubbed to create test data in todos helper specs

See merge request gitlab-org/gitlab!32906
parents bed0ac5c ad052f70
---
title: Use build_stubbed to avoid interacting with the DB in todos helper specs
merge_request: 32906
author: Arun Kumar Mohan
type: performance
...@@ -89,7 +89,7 @@ describe TodosHelper do ...@@ -89,7 +89,7 @@ describe TodosHelper do
context 'when given a non-design todo' do context 'when given a non-design todo' do
let(:todo) do let(:todo) do
create(:todo, :assigned, build_stubbed(:todo, :assigned,
user: user, user: user,
project: issue.project, project: issue.project,
target: issue, target: issue,
......
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