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
0d228871
Commit
0d228871
authored
Aug 06, 2021
by
Alexander Turinske
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update rspec test to remove unused variable
- use create instead
parent
0c0a6e9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
ee/spec/helpers/projects/security/policies_helper_spec.rb
ee/spec/helpers/projects/security/policies_helper_spec.rb
+4
-1
No files found.
ee/spec/helpers/projects/security/policies_helper_spec.rb
View file @
0d228871
...
...
@@ -8,11 +8,14 @@ RSpec.describe Projects::Security::PoliciesHelper do
context
'when a project does have a security policy project'
do
let
(
:policy_management_project
)
{
create
(
:project
)
}
let!
(
:policy_configuration
)
{
create
(
:security_orchestration_policy_configuration
,
security_policy_management_project:
policy_management_project
,
project:
project
)
}
subject
{
helper
.
assigned_policy_project
(
project
)
}
it
{
create
(
:security_orchestration_policy_configuration
,
{
security_policy_management_project:
policy_management_project
,
project:
project
}
)
is_expected
.
to
include
({
id:
policy_management_project
.
to_global_id
.
to_s
,
name:
policy_management_project
.
name
,
...
...
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