Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-08-10 13:52:59 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-08-10 13:52:59 +0300
commitcec843b2ec7535618674fc1cd00061e9d4a95b37 (patch)
treeaa288ced5ece74208df396e6386b2fd51c641c96 /spec
parent2dd5a5179a522b650425610cc76954e433b61c09 (diff)
Add latest changes from gitlab-org/gitlab@13-12-stable-ee
Diffstat (limited to 'spec')
-rw-r--r--spec/models/user_spec.rb1
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