Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
953f5960
Commit
953f5960
authored
Oct 05, 2018
by
Jasper Maes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rails 5: fix presence message validation for prometheus_alert
parent
ecb6c46c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
ee/changelogs/unreleased/rails5-fix-prometheus-alert-event-spec.yml
...ogs/unreleased/rails5-fix-prometheus-alert-event-spec.yml
+5
-0
ee/spec/models/prometheus_alert_event_spec.rb
ee/spec/models/prometheus_alert_event_spec.rb
+1
-1
No files found.
ee/changelogs/unreleased/rails5-fix-prometheus-alert-event-spec.yml
0 → 100644
View file @
953f5960
---
title
:
'
Rails
5:
fix
presence
message
validation
for
prometheus_alert'
merge_request
:
7823
author
:
Jasper Maes
type
:
other
ee/spec/models/prometheus_alert_event_spec.rb
View file @
953f5960
...
...
@@ -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
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment