fix: Standardize name validation on agent / profile pages (#1720)

This commit is contained in:
Karthik Sivadas
2021-02-04 20:08:46 +05:30
committed by GitHub
parent 6a614a520b
commit 2012aab1d5
5 changed files with 5 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ RSpec.describe User do
context 'validations' do
it { is_expected.to validate_presence_of(:email) }
it { is_expected.to validate_presence_of(:name) }
it { is_expected.to validate_length_of(:name).is_at_least(1) }
end
context 'associations' do