diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-11-28 06:14:05 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-11-28 06:14:05 +0300 |
commit | 47234ab3672697f85f8e9f452aea4453e1b9aadc (patch) | |
tree | c42f407fff251fd78f794291d2145f19222a9be1 /spec | |
parent | 5ed4e7e21682a0fa8617ddd8c5f5d1b3fc611314 (diff) | |
download | gitlab-ce-47234ab3672697f85f8e9f452aea4453e1b9aadc.tar.gz |
Validate username. Gitlab::Regex added
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/user_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 824e8cfb73b..279e315b693 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -58,6 +58,7 @@ describe User do end describe 'validations' do + it { should validate_presence_of(:username) } it { should validate_presence_of(:projects_limit) } it { should validate_numericality_of(:projects_limit) } it { should allow_value(0).for(:projects_limit) } |