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
f365e4db
Commit
f365e4db
authored
May 18, 2021
by
Suraj Tripathi
Committed by
Bob Van Landuyt
May 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed robocop offense for ee/spec/services/approval_rules/*
parent
71832ab5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-2
ee/changelogs/unreleased/issue-220040-fix-robocop-savebang-approval-rules.yml
...ased/issue-220040-fix-robocop-savebang-approval-rules.yml
+5
-0
ee/spec/services/approval_rules/finalize_service_spec.rb
ee/spec/services/approval_rules/finalize_service_spec.rb
+2
-2
ee/spec/services/approval_rules/update_service_spec.rb
ee/spec/services/approval_rules/update_service_spec.rb
+1
-1
No files found.
.rubocop_manual_todo.yml
View file @
f365e4db
...
@@ -79,8 +79,6 @@ Rails/SaveBang:
...
@@ -79,8 +79,6 @@ Rails/SaveBang:
-
'
ee/spec/models/visible_approvable_spec.rb'
-
'
ee/spec/models/visible_approvable_spec.rb'
-
'
ee/spec/models/vulnerabilities/feedback_spec.rb'
-
'
ee/spec/models/vulnerabilities/feedback_spec.rb'
-
'
ee/spec/models/vulnerabilities/issue_link_spec.rb'
-
'
ee/spec/models/vulnerabilities/issue_link_spec.rb'
-
'
ee/spec/services/approval_rules/finalize_service_spec.rb'
-
'
ee/spec/services/approval_rules/update_service_spec.rb'
-
'
ee/spec/services/ee/boards/issues/create_service_spec.rb'
-
'
ee/spec/services/ee/boards/issues/create_service_spec.rb'
-
'
ee/spec/services/ee/boards/issues/list_service_spec.rb'
-
'
ee/spec/services/ee/boards/issues/list_service_spec.rb'
-
'
ee/spec/services/ee/boards/lists/list_service_spec.rb'
-
'
ee/spec/services/ee/boards/lists/list_service_spec.rb'
...
...
ee/changelogs/unreleased/issue-220040-fix-robocop-savebang-approval-rules.yml
0 → 100644
View file @
f365e4db
---
title
:
Fixed robocop offense for ee/spec/services/approval_rules/*
merge_request
:
61829
author
:
Suraj Tripathi @surajtripathy07
type
:
fixed
ee/spec/services/approval_rules/finalize_service_spec.rb
View file @
f365e4db
...
@@ -45,7 +45,7 @@ RSpec.describe ApprovalRules::FinalizeService do
...
@@ -45,7 +45,7 @@ RSpec.describe ApprovalRules::FinalizeService do
let
(
:merge_request
)
{
create
(
:merged_merge_request
,
source_project:
project
,
target_project:
project
)
}
let
(
:merge_request
)
{
create
(
:merged_merge_request
,
source_project:
project
,
target_project:
project
)
}
before
do
before
do
merge_request
.
approval_rules
.
code_owner
.
create
(
name:
'Code Owner'
,
rule_type: :code_owner
)
merge_request
.
approval_rules
.
code_owner
.
create
!
(
name:
'Code Owner'
,
rule_type: :code_owner
)
end
end
it
'copies project rules to MR, keep snapshot of group member by including it as part of users association'
do
it
'copies project rules to MR, keep snapshot of group member by including it as part of users association'
do
...
@@ -65,7 +65,7 @@ RSpec.describe ApprovalRules::FinalizeService do
...
@@ -65,7 +65,7 @@ RSpec.describe ApprovalRules::FinalizeService do
shared_examples
'idempotent approval tests'
do
|
rule_type
|
shared_examples
'idempotent approval tests'
do
|
rule_type
|
before
do
before
do
project_rule
.
destroy
project_rule
.
destroy
!
rule
=
create
(
:approval_project_rule
,
project:
project
,
name:
'another rule'
,
approvals_required:
2
,
rule_type:
rule_type
)
rule
=
create
(
:approval_project_rule
,
project:
project
,
name:
'another rule'
,
approvals_required:
2
,
rule_type:
rule_type
)
rule
.
users
=
[
user1
]
rule
.
users
=
[
user1
]
...
...
ee/spec/services/approval_rules/update_service_spec.rb
View file @
f365e4db
...
@@ -5,7 +5,7 @@ require 'spec_helper'
...
@@ -5,7 +5,7 @@ require 'spec_helper'
RSpec
.
describe
ApprovalRules
::
UpdateService
do
RSpec
.
describe
ApprovalRules
::
UpdateService
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:user
)
{
project
.
creator
}
let
(
:user
)
{
project
.
creator
}
let
(
:approval_rule
)
{
target
.
approval_rules
.
create
(
name:
'foo'
,
approvals_required:
2
)
}
let
(
:approval_rule
)
{
target
.
approval_rules
.
create
!
(
name:
'foo'
,
approvals_required:
2
)
}
shared_examples
'editable'
do
shared_examples
'editable'
do
let
(
:new_approvers
)
{
create_list
(
:user
,
2
)
}
let
(
:new_approvers
)
{
create_list
(
:user
,
2
)
}
...
...
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