diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-15 15:06:07 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-15 15:06:07 +0000 |
commit | 03087faa6b679cd82a8a7b5f6491edc414ed91eb (patch) | |
tree | d3f21af660920336f1e891cf7eb9a75b084176b9 /qa/spec | |
parent | fc96671f817239041ba2747af835a8d5d9aa3739 (diff) | |
download | gitlab-ce-03087faa6b679cd82a8a7b5f6491edc414ed91eb.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa/spec')
-rw-r--r-- | qa/spec/resource/user_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qa/spec/resource/user_spec.rb b/qa/spec/resource/user_spec.rb index d612dfc530e..5845f7996a3 100644 --- a/qa/spec/resource/user_spec.rb +++ b/qa/spec/resource/user_spec.rb @@ -35,8 +35,8 @@ describe QA::Resource::User do end describe '#name' do - it 'defaults to the username' do - expect(subject.name).to eq(subject.username) + it 'defaults to a name based on the username' do + expect(subject.name).to match(/#{subject.username.tr('-', ' ')}/i) end it 'retrieves the name from the api_resource if present' do |