diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-04 09:09:49 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-04 09:09:49 +0300 |
commit | b41e09c9ce655d61557a3513508952240506b161 (patch) | |
tree | 30c4c04800383f01175961e84415ecf9b8eff437 /spec/models/user_detail_spec.rb | |
parent | 47b5ca54362fa51c08f4525415bb6887b8a7ba92 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/user_detail_spec.rb')
-rw-r--r-- | spec/models/user_detail_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/models/user_detail_spec.rb b/spec/models/user_detail_spec.rb index c2d9b916a1c..3c87dcdcbd9 100644 --- a/spec/models/user_detail_spec.rb +++ b/spec/models/user_detail_spec.rb @@ -16,6 +16,11 @@ RSpec.describe UserDetail do it { is_expected.to validate_length_of(:pronouns).is_at_most(50) } end + describe '#pronunciation' do + it { is_expected.not_to validate_presence_of(:pronunciation) } + it { is_expected.to validate_length_of(:pronunciation).is_at_most(255) } + end + describe '#bio' do it { is_expected.to validate_length_of(:bio).is_at_most(255) } end |