Commit bf7eaae6 authored by Peter Leitzen's avatar Peter Leitzen

Fix cop FactoryBot/InlineAssociation for prometheus_alert

parent 08ae9521
......@@ -1309,7 +1309,6 @@ FactoryBot/InlineAssociation:
- 'spec/factories/notes.rb'
- 'spec/factories/packages.rb'
- 'spec/factories/packages/package_file.rb'
- 'spec/factories/prometheus_alert.rb'
- 'spec/factories/resource_label_events.rb'
- 'spec/factories/resource_milestone_event.rb'
- 'spec/factories/resource_state_event.rb'
......
......@@ -7,11 +7,11 @@ FactoryBot.define do
threshold { 1 }
environment do |alert|
build(:environment, project: alert.project)
association(:environment, project: alert.project)
end
prometheus_metric do |alert|
build(:prometheus_metric, project: alert.project)
association(:prometheus_metric, project: alert.project)
end
trait :with_runbook_url 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