Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-19 06:07:38 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-19 06:07:38 +0300
commit0cee6f1577cd31cae7dc0e82f65dcad462a4d18a (patch)
tree180a48cc0b5b15e6f2ac489a6c828ebab591d4cf /spec/services
parentdcd01617a750c41fd082cc3383fc7ad2f2afd026 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/spam/spam_verdict_service_spec.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/services/spam/spam_verdict_service_spec.rb b/spec/services/spam/spam_verdict_service_spec.rb
index b89c96129c2..dde93aa6b93 100644
--- a/spec/services/spam/spam_verdict_service_spec.rb
+++ b/spec/services/spam/spam_verdict_service_spec.rb
@@ -28,10 +28,6 @@ RSpec.describe Spam::SpamVerdictService do
extra_attributes
end
- before do
- stub_feature_flags(allow_possible_spam: false)
- end
-
shared_examples 'execute spam verdict service' do
subject { service.execute }
@@ -119,9 +115,9 @@ RSpec.describe Spam::SpamVerdictService do
end
end
- context 'if allow_possible_spam flag is true' do
+ context 'if allow_possible_spam application setting is true' do
before do
- stub_feature_flags(allow_possible_spam: true)
+ stub_application_setting(allow_possible_spam: true)
end
context 'and a service returns a verdict that should be overridden' do