Commit ad052f70 authored by Arun Kumar Mohan's avatar Arun Kumar Mohan

Use build_stubbed to avoid interacting with the DB in todos helper specs

parent 6cfe09c4
---
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