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
dea4e5f0
Commit
dea4e5f0
authored
Mar 27, 2020
by
charlieablett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor refactor of shared context
parent
3cf78b50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/services/spam/spam_check_service_spec.rb
spec/services/spam/spam_check_service_spec.rb
+3
-3
No files found.
spec/services/spam/spam_check_service_spec.rb
View file @
dea4e5f0
...
@@ -49,7 +49,7 @@ describe Spam::SpamCheckService do
...
@@ -49,7 +49,7 @@ describe Spam::SpamCheckService do
end
end
end
end
shared_examples
'
akismet spam
'
do
shared_examples
'
only checks for spam if a request is provided
'
do
context
'when request is missing'
do
context
'when request is missing'
do
let
(
:request
)
{
nil
}
let
(
:request
)
{
nil
}
...
@@ -132,7 +132,7 @@ describe Spam::SpamCheckService do
...
@@ -132,7 +132,7 @@ describe Spam::SpamCheckService do
stub_feature_flags
(
allow_possible_spam:
false
)
stub_feature_flags
(
allow_possible_spam:
false
)
end
end
it_behaves_like
'
akismet spam
'
it_behaves_like
'
only checks for spam if a request is provided
'
it
'marks as spam'
do
it
'marks as spam'
do
subject
subject
...
@@ -142,7 +142,7 @@ describe Spam::SpamCheckService do
...
@@ -142,7 +142,7 @@ describe Spam::SpamCheckService do
end
end
context
'when allow_possible_spam feature flag is true'
do
context
'when allow_possible_spam feature flag is true'
do
it_behaves_like
'
akismet spam
'
it_behaves_like
'
only checks for spam if a request is provided
'
it
'does not mark as spam'
do
it
'does not mark as spam'
do
subject
subject
...
...
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