Commit 0b217d65 authored by Peter Leitzen's avatar Peter Leitzen

Fix cop FactoryBot/InlineAssociation for merge requests

parent 87b0c6c9
...@@ -14,7 +14,6 @@ FactoryBot/InlineAssociation: ...@@ -14,7 +14,6 @@ FactoryBot/InlineAssociation:
- 'spec/factories/go_modules.rb' - 'spec/factories/go_modules.rb'
- 'spec/factories/group_group_links.rb' - 'spec/factories/group_group_links.rb'
- 'spec/factories/import_export_uploads.rb' - 'spec/factories/import_export_uploads.rb'
- 'spec/factories/merge_requests.rb'
- 'spec/factories/notes.rb' - 'spec/factories/notes.rb'
- 'spec/factories/sent_notifications.rb' - 'spec/factories/sent_notifications.rb'
- 'spec/factories/uploads.rb' - 'spec/factories/uploads.rb'
......
...@@ -237,7 +237,7 @@ FactoryBot.define do ...@@ -237,7 +237,7 @@ FactoryBot.define do
target_branch { 'pages-deploy-target' } target_branch { 'pages-deploy-target' }
transient do transient do
deployment { create(:deployment, :review_app) } deployment { association(:deployment, :review_app) }
end end
after(:build) do |merge_request, evaluator| after(:build) do |merge_request, evaluator|
......
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