Commit 63565a6e authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'pl-rubocop-inline-association-sent-notifications' into 'master'

Fix cop FactoryBot/InlineAssociation for sent notification

See merge request gitlab-org/gitlab!48153
parents eaf2d6f0 29fe7eed
......@@ -16,7 +16,6 @@ FactoryBot/InlineAssociation:
- 'spec/factories/import_export_uploads.rb'
- 'spec/factories/merge_requests.rb'
- 'spec/factories/notes.rb'
- 'spec/factories/sent_notifications.rb'
- 'spec/factories/uploads.rb'
- 'spec/factories/wiki_pages.rb'
......
......@@ -4,7 +4,7 @@ FactoryBot.define do
factory :sent_notification do
project
recipient { project.creator }
noteable { create(:issue, project: project) }
noteable { association(:issue, project: project) }
reply_key { SentNotification.reply_key }
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