diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-12 03:09:27 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-12 03:09:27 +0000 |
commit | 39623d60e828f0d9e2d9c96fa5adfc420808f454 (patch) | |
tree | 69abb57cb958e3c8f6e279c9adb26db10184444d /spec/models/application_setting | |
parent | 5da9546a43ffba2fabdd87c7abcf1a32e2ed0965 (diff) | |
download | gitlab-ce-39623d60e828f0d9e2d9c96fa5adfc420808f454.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/application_setting')
-rw-r--r-- | spec/models/application_setting/term_spec.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/models/application_setting/term_spec.rb b/spec/models/application_setting/term_spec.rb index 51a6027698f..d9efa597352 100644 --- a/spec/models/application_setting/term_spec.rb +++ b/spec/models/application_setting/term_spec.rb @@ -3,9 +3,7 @@ require 'spec_helper' RSpec.describe ApplicationSetting::Term do - describe 'validations' do - it { is_expected.to validate_presence_of(:terms) } - end + it { is_expected.to nullify_if_blank(:terms) } describe '.latest' do it 'finds the latest terms' do |