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:
Diffstat (limited to 'spec/requests/verifies_with_email_spec.rb')
-rw-r--r--spec/requests/verifies_with_email_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/requests/verifies_with_email_spec.rb b/spec/requests/verifies_with_email_spec.rb
index cac754a9cb1..8a6a7e717ff 100644
--- a/spec/requests/verifies_with_email_spec.rb
+++ b/spec/requests/verifies_with_email_spec.rb
@@ -223,6 +223,7 @@ feature_category: :user_management do
context 'when the feature flag is toggled on' do
before do
stub_feature_flags(require_email_verification: user)
+ stub_feature_flags(skip_require_email_verification: false)
end
it_behaves_like 'verifying with email'
@@ -242,6 +243,14 @@ feature_category: :user_management do
it_behaves_like 'verifying with email'
end
+
+ context 'when the skip_require_email_verification feature flag is turned on' do
+ before do
+ stub_feature_flags(skip_require_email_verification: user)
+ end
+
+ it_behaves_like 'not verifying with email'
+ end
end
end
end