Commit 29fe7eed authored by Peter Leitzen's avatar Peter Leitzen

Fix cop FactoryBot/InlineAssociation for sent notification

parent 81ffca3a
...@@ -16,7 +16,6 @@ FactoryBot/InlineAssociation: ...@@ -16,7 +16,6 @@ FactoryBot/InlineAssociation:
- 'spec/factories/import_export_uploads.rb' - 'spec/factories/import_export_uploads.rb'
- 'spec/factories/merge_requests.rb' - 'spec/factories/merge_requests.rb'
- 'spec/factories/notes.rb' - 'spec/factories/notes.rb'
- 'spec/factories/sent_notifications.rb'
- 'spec/factories/uploads.rb' - 'spec/factories/uploads.rb'
- 'spec/factories/wiki_pages.rb' - 'spec/factories/wiki_pages.rb'
......
...@@ -4,7 +4,7 @@ FactoryBot.define do ...@@ -4,7 +4,7 @@ FactoryBot.define do
factory :sent_notification do factory :sent_notification do
project project
recipient { project.creator } recipient { project.creator }
noteable { create(:issue, project: project) } noteable { association(:issue, project: project) }
reply_key { SentNotification.reply_key } reply_key { SentNotification.reply_key }
end end
end end
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