diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-20 15:08:54 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-20 15:08:54 +0300 |
commit | be2142bf5e03af8ba9bb96e4bf0b4781184ae01b (patch) | |
tree | b40aab281b29a56bd398757564d271c8b3aa8662 /spec/factories/prometheus_alert.rb | |
parent | bc12365ae0254332f97299138f019bea3ff12351 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories/prometheus_alert.rb')
-rw-r--r-- | spec/factories/prometheus_alert.rb | 4 |
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 |