diff options
author | Corey Hinshaw <hinshaw.25@osu.edu> | 2015-05-14 11:46:48 -0400 |
---|---|---|
committer | Corey Hinshaw <hinshaw.25@osu.edu> | 2015-12-10 18:49:48 -0500 |
commit | d8b3c3274c63d5fa62c441bac6e78a16e94422c3 (patch) | |
tree | 524e690b7164fc314a6953babbdd1b868a9a3cfc /spec/lib | |
parent | 667065700bc2ef4c687043d9e6ef5eb500df09a3 (diff) | |
download | gitlab-ce-d8b3c3274c63d5fa62c441bac6e78a16e94422c3.tar.gz |
AuthHash should not parameterize email user
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/o_auth/auth_hash_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/o_auth/auth_hash_spec.rb b/spec/lib/gitlab/o_auth/auth_hash_spec.rb index a4f8b44e38e..8aaeb5779d3 100644 --- a/spec/lib/gitlab/o_auth/auth_hash_spec.rb +++ b/spec/lib/gitlab/o_auth/auth_hash_spec.rb @@ -14,7 +14,7 @@ describe Gitlab::OAuth::AuthHash, lib: true do let(:uid_raw) do "CN=Onur K\xC3\xBC\xC3\xA7\xC3\xBCk,OU=Test,DC=example,DC=net" end - let(:email_raw) { "onur.k\xC3\xBC\xC3\xA7\xC3\xBCk@example.net" } + let(:email_raw) { "onur.k\xC3\xBC\xC3\xA7\xC3\xBCk_ABC-123@example.net" } let(:nickname_raw) { "ok\xC3\xBC\xC3\xA7\xC3\xBCk" } let(:first_name_raw) { 'Onur' } let(:last_name_raw) { "K\xC3\xBC\xC3\xA7\xC3\xBCk" } @@ -66,7 +66,7 @@ describe Gitlab::OAuth::AuthHash, lib: true do before { info_hash.delete(:nickname) } it 'takes the first part of the email as username' do - expect(auth_hash.username).to eql 'onur-kucuk' + expect(auth_hash.username).to eql 'onur.kucuk_ABC-123' end end |