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
d568be91
Commit
d568be91
authored
Oct 04, 2021
by
Alexander Turinske
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update test names
- with the update of the helper method, update the test names as well
parent
03ab39e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ee/spec/helpers/projects/threat_monitoring_helper_spec.rb
ee/spec/helpers/projects/threat_monitoring_helper_spec.rb
+2
-2
No files found.
ee/spec/helpers/projects/threat_monitoring_helper_spec.rb
View file @
d568be91
...
...
@@ -5,13 +5,13 @@ require 'spec_helper'
RSpec
.
describe
Projects
::
ThreatMonitoringHelper
do
let
(
:project
)
{
create
(
:project
,
:repository
,
:public
)
}
describe
'#
policy_alert_details
'
do
describe
'#
threat_monitoring_alert_details_data
'
do
let
(
:alert
)
{
build
(
:alert_management_alert
,
project:
project
)
}
context
'when a new alert is created'
do
subject
{
helper
.
threat_monitoring_alert_details_data
(
project
,
alert
.
iid
)
}
it
'returns expected
policy
data'
do
it
'returns expected
alert
data'
do
expect
(
subject
).
to
match
({
'alert-id'
=>
alert
.
iid
,
'project-path'
=>
project
.
full_path
,
...
...
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