Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-10-20 15:08:54 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-10-20 15:08:54 +0300
commitbe2142bf5e03af8ba9bb96e4bf0b4781184ae01b (patch)
treeb40aab281b29a56bd398757564d271c8b3aa8662 /spec/factories/prometheus_alert.rb
parentbc12365ae0254332f97299138f019bea3ff12351 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories/prometheus_alert.rb')
-rw-r--r--spec/factories/prometheus_alert.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/factories/prometheus_alert.rb b/spec/factories/prometheus_alert.rb
index 18cf1a20e0d..ad3868c38ed 100644
--- a/spec/factories/prometheus_alert.rb
+++ b/spec/factories/prometheus_alert.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