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
39f63889
Commit
39f63889
authored
Sep 25, 2020
by
Jake Lear
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests for EE issue#check_for_spam?
parent
a2642f13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
ee/spec/models/issue_spec.rb
ee/spec/models/issue_spec.rb
+8
-8
No files found.
ee/spec/models/issue_spec.rb
View file @
39f63889
...
...
@@ -374,17 +374,17 @@ RSpec.describe Issue do
expect
(
issue
.
check_for_spam?
).
to
eq
(
check_for_spam?
)
end
end
end
it
'does not check for spam when milestone
is updated'
,
:focus
=>
true
do
project
=
reusable_project
project
.
update
(
visibility_level:
visibility_level
)
issue
=
create
(
:issue
,
project:
project
,
confidential:
confidential
,
description:
'original description'
,
author:
author
)
it
'does not check for spam when only weight
is updated'
,
:focus
=>
true
do
project
=
reusable_project
project
.
update
(
visibility_level:
Gitlab
::
VisibilityLevel
::
PRIVATE
)
issue
=
create
(
:issue
,
project:
project
,
weight:
3
,
author:
author
)
issue
.
assign_attributes
(
new_attributes
)
issue
.
assign_attributes
({
weight:
2
}
)
expect
(
issue
.
check_for_spam?
).
to
eq
(
check_for_spam?
)
end
end
expect
(
issue
.
check_for_spam?
).
to
eq
(
false
)
end
end
...
...
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