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
bf7eaae6
Commit
bf7eaae6
authored
Oct 19, 2020
by
Peter Leitzen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix cop FactoryBot/InlineAssociation for prometheus_alert
parent
08ae9521
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
.rubocop_todo.yml
.rubocop_todo.yml
+0
-1
spec/factories/prometheus_alert.rb
spec/factories/prometheus_alert.rb
+2
-2
No files found.
.rubocop_todo.yml
View file @
bf7eaae6
...
...
@@ -1309,7 +1309,6 @@ FactoryBot/InlineAssociation:
-
'
spec/factories/notes.rb'
-
'
spec/factories/packages.rb'
-
'
spec/factories/packages/package_file.rb'
-
'
spec/factories/prometheus_alert.rb'
-
'
spec/factories/resource_label_events.rb'
-
'
spec/factories/resource_milestone_event.rb'
-
'
spec/factories/resource_state_event.rb'
...
...
spec/factories/prometheus_alert.rb
View file @
bf7eaae6
...
...
@@ -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
...
...
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