diff options
author | Nick Thomas <nick@gitlab.com> | 2017-08-28 21:58:36 +0100 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-08-30 20:50:44 +0100 |
commit | eb05bdc6f589f6f0713df12582eb9f18fc4022b3 (patch) | |
tree | 2a975a959d0ad419362f7b04d0329581af2bc366 /spec/models/application_setting_spec.rb | |
parent | b84ca08e351fc9238bef4e6b4bf74158d25d4f1d (diff) | |
download | gitlab-ce-eb05bdc6f589f6f0713df12582eb9f18fc4022b3.tar.gz |
Move the key restriction validation to its own class
Diffstat (limited to 'spec/models/application_setting_spec.rb')
-rw-r--r-- | spec/models/application_setting_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/application_setting_spec.rb b/spec/models/application_setting_spec.rb index 0435aa9dfe1..a3b6baca0a2 100644 --- a/spec/models/application_setting_spec.rb +++ b/spec/models/application_setting_spec.rb @@ -85,7 +85,7 @@ describe ApplicationSetting do let(:field) { :"#{type}_key_restriction" } it { is_expected.to validate_presence_of(field) } - it { is_expected.to allow_value(*described_class.supported_key_restrictions(type)).for(field) } + it { is_expected.to allow_value(*KeyRestrictionValidator.supported_key_restrictions(type)).for(field) } it { is_expected.not_to allow_value(128).for(field) } end end |