Commit f31dd0cd authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'rails5-fix-prometheus-alert-event-spec' into 'master'

Rails 5: fix presence message validation for prometheus_alert

See merge request gitlab-org/gitlab-ee!7823
parents 54898c9e 953f5960
---
title: 'Rails 5: fix presence message validation for prometheus_alert'
merge_request: 7823
author: Jasper Maes
type: other
......@@ -13,7 +13,7 @@ describe PrometheusAlertEvent do
describe 'validations' do
it { is_expected.to be_valid }
it { is_expected.to validate_presence_of(:prometheus_alert) }
it { is_expected.to validate_presence_of(:prometheus_alert).with_message(Gitlab.rails5? ? :required : :blank ) }
it { is_expected.to validate_uniqueness_of(:payload_key).scoped_to(:prometheus_alert_id) }
it { is_expected.to validate_presence_of(:started_at) }
......
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