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
ae5a198e
Commit
ae5a198e
authored
Nov 22, 2021
by
Mehmet Emin INAC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Verify the policy rule has been executed
parent
118e1791
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
ee/spec/controllers/projects/security/vulnerabilities_controller_spec.rb
...lers/projects/security/vulnerabilities_controller_spec.rb
+6
-0
No files found.
ee/spec/controllers/projects/security/vulnerabilities_controller_spec.rb
View file @
ae5a198e
...
@@ -28,6 +28,12 @@ RSpec.describe Projects::Security::VulnerabilitiesController do
...
@@ -28,6 +28,12 @@ RSpec.describe Projects::Security::VulnerabilitiesController do
let
(
:can_create_vulnerability
)
{
true
}
let
(
:can_create_vulnerability
)
{
true
}
end
end
it
'checks if the user can create a vulnerability'
do
request_new_vulnerability_page
expect
(
controller
).
to
have_received
(
:can?
).
with
(
controller
.
current_user
,
:create_vulnerability
,
an_instance_of
(
Project
))
end
context
'when user can create vulnerability'
do
context
'when user can create vulnerability'
do
let
(
:can_create_vulnerability
)
{
true
}
let
(
:can_create_vulnerability
)
{
true
}
...
...
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