diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-12 15:09:47 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-12 15:09:47 +0300 |
commit | ef7cfec30c9fab7b9e757877c472ca7ca2eccc2d (patch) | |
tree | f69647e6f64c16fad044d564db65cb51c7a0b63f /spec/factories | |
parent | 0e1a6f6a2b28464e6ad151da4dced6d603bd11b0 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/alert_management/alerts.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/factories/alert_management/alerts.rb b/spec/factories/alert_management/alerts.rb index 28cfe5d6b29..d98fed4a6b1 100644 --- a/spec/factories/alert_management/alerts.rb +++ b/spec/factories/alert_management/alerts.rb @@ -3,6 +3,7 @@ require 'ffaker' FactoryBot.define do factory :alert_management_alert, class: 'AlertManagement::Alert' do + triggered project title { FFaker::Lorem.sentence } started_at { Time.current } @@ -35,6 +36,11 @@ FactoryBot.define do ended_at { nil } end + trait :triggered do + status { AlertManagement::Alert::STATUSES[:triggered] } + without_ended_at + end + trait :acknowledged do status { AlertManagement::Alert::STATUSES[:acknowledged] } without_ended_at |