diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-09-23 16:37:59 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-09-23 16:37:59 +0200 |
commit | 73a3df4de351528dfe954c0f44af1f0e45b221d0 (patch) | |
tree | a1a22bfcb5613d44227a19edc7b31ab7bdfc22a9 /spec/lib | |
parent | cfe663407844f55565e8b7e101f05fc24315e2ff (diff) | |
download | gitlab-ce-73a3df4de351528dfe954c0f44af1f0e45b221d0.tar.gz |
Fix LDAP attribute mappingfix-ldap-attributes
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/ldap/auth_hash_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/lib/gitlab/ldap/auth_hash_spec.rb b/spec/lib/gitlab/ldap/auth_hash_spec.rb index 18c7924fea1..7d8268536a4 100644 --- a/spec/lib/gitlab/ldap/auth_hash_spec.rb +++ b/spec/lib/gitlab/ldap/auth_hash_spec.rb @@ -24,10 +24,10 @@ describe Gitlab::LDAP::AuthHash do let(:raw_info) do { - uid: '123456', - email: 'johnsmith@example.com', - cn: 'Smith, J.', - fullName: 'John Smith' + uid: ['123456'], + email: ['johnsmith@example.com'], + cn: ['Smith, J.'], + fullName: ['John Smith'] } end @@ -45,8 +45,8 @@ describe Gitlab::LDAP::AuthHash do context "with overridden attributes" do let(:attributes) do { - username: ['mail', 'email'], - name: 'fullName' + 'username' => ['mail', 'email'], + 'name' => 'fullName' } end |