diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-31 09:07:50 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-31 09:07:50 +0300 |
commit | 92077e0f8d70c70a908395808b16f98ecd3a5fcd (patch) | |
tree | efb011b2b7e96c2a8a0e7877c0966ab70014ebee /spec/services/spam | |
parent | 83a3209c3f8e5bc055acf80f3440335d2b97133b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services/spam')
-rw-r--r-- | spec/services/spam/spam_check_service_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/services/spam/spam_check_service_spec.rb b/spec/services/spam/spam_check_service_spec.rb index cb13465b825..3ebde2a92c6 100644 --- a/spec/services/spam/spam_check_service_spec.rb +++ b/spec/services/spam/spam_check_service_spec.rb @@ -49,7 +49,7 @@ describe Spam::SpamCheckService do 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 let(:request) { nil } @@ -132,7 +132,7 @@ describe Spam::SpamCheckService do stub_feature_flags(allow_possible_spam: false) end - it_behaves_like 'akismet spam' + it_behaves_like 'only checks for spam if a request is provided' it 'marks as spam' do subject @@ -142,7 +142,7 @@ describe Spam::SpamCheckService do end 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 subject |