diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-13 12:10:22 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-13 12:10:22 +0300 |
commit | 10e15ac3c2798956ff6a43d7b36bdf86c68aa817 (patch) | |
tree | 491a448439d1c2f43258d0418c53e8cc00b51039 /spec/models | |
parent | 1cd5d53f92b07b0be71b6c2d9fdfa7cf07221890 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/application_setting_spec.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/spec/models/application_setting_spec.rb b/spec/models/application_setting_spec.rb index b0c7f8c6dfc..61fa1eb00d2 100644 --- a/spec/models/application_setting_spec.rb +++ b/spec/models/application_setting_spec.rb @@ -1618,27 +1618,6 @@ RSpec.describe ApplicationSetting, feature_category: :shared, type: :model do end end - context "unconfirmed user deletion" do - it { is_expected.to allow_value(true, false).for(:delete_unconfirmed_users) } - - context "delete unconfirmed users is false" do - it "does not validate unconfirmed_users_delete_after_days" do - setting.delete_unconfirmed_users = false - setting.unconfirmed_users_delete_after_days = 0 - - expect(setting).to be_valid - end - end - - context "delete unconfirmed users is true" do - before do - setting.delete_unconfirmed_users = true - end - - it { is_expected.to validate_numericality_of(:unconfirmed_users_delete_after_days).is_greater_than(0) } - end - end - context 'personal accesss token prefix' do it 'sets the correct default value' do expect(setting.personal_access_token_prefix).to eql('glpat-') |