diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-19 03:07:38 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-19 03:07:38 +0000 |
commit | 0cee6f1577cd31cae7dc0e82f65dcad462a4d18a (patch) | |
tree | 180a48cc0b5b15e6f2ac489a6c828ebab591d4cf /spec/features/snippets/spam_snippets_spec.rb | |
parent | dcd01617a750c41fd082cc3383fc7ad2f2afd026 (diff) | |
download | gitlab-ce-0cee6f1577cd31cae7dc0e82f65dcad462a4d18a.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/snippets/spam_snippets_spec.rb')
-rw-r--r-- | spec/features/snippets/spam_snippets_spec.rb | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/spec/features/snippets/spam_snippets_spec.rb b/spec/features/snippets/spam_snippets_spec.rb index 5d49b36f4fe..0e3f96906de 100644 --- a/spec/features/snippets/spam_snippets_spec.rb +++ b/spec/features/snippets/spam_snippets_spec.rb @@ -13,7 +13,6 @@ RSpec.describe 'snippet editor with spam', skip: "Will be handled in https://git end before do - stub_feature_flags(allow_possible_spam: false) stub_env('IN_MEMORY_APPLICATION_SETTINGS', 'false') Gitlab::CurrentSettings.update!( @@ -74,15 +73,15 @@ RSpec.describe 'snippet editor with spam', skip: "Will be handled in https://git end end - context 'when allow_possible_spam feature flag is false' do - before do - stub_application_setting(recaptcha_enabled: false) - end - + context 'when allow_possible_spam application setting is false' do it_behaves_like 'does not allow creation' end - context 'when allow_possible_spam feature flag is true' do + context 'when allow_possible_spam application setting is true' do + before do + stub_application_setting(allow_possible_spam: true) + end + it_behaves_like 'solve reCAPTCHA' end end @@ -94,7 +93,7 @@ RSpec.describe 'snippet editor with spam', skip: "Will be handled in https://git end end - context 'when allow_possible_spam feature flag is false' do + context 'when allow_possible_spam application setting is false' do before do stub_application_setting(recaptcha_enabled: false) end @@ -102,7 +101,11 @@ RSpec.describe 'snippet editor with spam', skip: "Will be handled in https://git it_behaves_like 'does not allow creation' end - context 'when allow_possible_spam feature flag is true' do + context 'when allow_possible_spam application setting is true' do + before do + stub_application_setting(allow_possible_spam: true) + end + it_behaves_like 'does not allow creation' end end |