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
68c4f3db
Commit
68c4f3db
authored
Sep 28, 2020
by
Jake Lear
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rubocop violations in issue_spec
parent
98aa4a31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ee/spec/models/issue_spec.rb
ee/spec/models/issue_spec.rb
+4
-4
No files found.
ee/spec/models/issue_spec.rb
View file @
68c4f3db
...
...
@@ -350,7 +350,7 @@ RSpec.describe Issue do
using
RSpec
::
Parameterized
::
TableSyntax
let_it_be
(
:reusable_project
)
{
create
(
:project
)
}
let_it_be
(
:author
)
{
::
User
.
support_bot
}
let
(
:planning
)
{
create
(
:project_label
,
project:
reusable_project
,
name:
'Planning'
)
}
let
(
:planning
)
{
create
(
:project_label
,
project:
reusable_project
,
name:
'Planning'
)
}
where
(
:visibility_level
,
:confidential
,
:new_attributes
,
:check_for_spam?
)
do
Gitlab
::
VisibilityLevel
::
PUBLIC
|
false
|
{
description:
'woo'
}
|
true
...
...
@@ -365,7 +365,7 @@ RSpec.describe Issue do
with_them
do
context
'when author is a bot'
do
it
'checks for spam on all issues'
,
:focus
=>
true
do
it
'checks for spam on all issues'
do
project
=
reusable_project
project
.
update
(
visibility_level:
visibility_level
)
issue
=
create
(
:issue
,
project:
project
,
confidential:
confidential
,
description:
'original description'
,
author:
author
)
...
...
@@ -377,9 +377,9 @@ RSpec.describe Issue do
end
end
it
'does not check for spam when only weight is updated'
,
:focus
=>
true
do
it
'does not check for spam when only weight is updated'
do
project
=
reusable_project
project
.
update
(
visibility_level:
Gitlab
::
VisibilityLevel
::
PRIVATE
)
project
.
update
(
visibility_level:
Gitlab
::
VisibilityLevel
::
PRIVATE
)
issue
=
create
(
:issue
,
project:
project
,
weight:
3
,
author:
author
)
issue
.
assign_attributes
({
weight:
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