diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-10 13:52:59 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-10 13:52:59 +0300 |
commit | cec843b2ec7535618674fc1cd00061e9d4a95b37 (patch) | |
tree | aa288ced5ece74208df396e6386b2fd51c641c96 /spec | |
parent | 2dd5a5179a522b650425610cc76954e433b61c09 (diff) |
Add latest changes from gitlab-org/gitlab@13-12-stable-ee
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 bce3083ab94..551cd425f38 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -383,6 +383,7 @@ RSpec.describe User do expect(user).not_to be_valid expect(user.errors.full_messages).to include('Username ending with MIME type format is not allowed.') + expect(build(:user, username: "test#{type}")).to be_valid end end |