Commit 72bb5231 authored by Kerri Miller's avatar Kerri Miller

Prefer let_it_be over let for static test objects

parent 94764057
......@@ -33,7 +33,8 @@ RSpec.describe Issuable do
end
describe 'user_note_authors' do
let(:system_user) { create(:user) }
let_it_be(:system_user) { create(:user) }
let!(:system_note) { create(:system_note, author: system_user, noteable: issue, project: issue.project) }
it 'filters the authors to those of user notes' do
......
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