diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-06-08 18:09:43 -0500 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-06-08 18:09:43 -0500 |
commit | 9282810fb7b6102657a0ddb2a02f71b6da22067f (patch) | |
tree | 36a334f683c12fe6db63c3b4ef2df2febbf09752 /spec | |
parent | c593154cb4f0215851fbbae1dde753dacbaa6713 (diff) | |
download | gitlab-ce-9282810fb7b6102657a0ddb2a02f71b6da22067f.tar.gz |
Syntax fixes and better logging around the `ldap_person` method.saml-ldap-link-flow
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/saml/user_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/lib/gitlab/saml/user_spec.rb b/spec/lib/gitlab/saml/user_spec.rb index 5957998e0f3..84c21ceefd9 100644 --- a/spec/lib/gitlab/saml/user_spec.rb +++ b/spec/lib/gitlab/saml/user_spec.rb @@ -184,9 +184,9 @@ describe Gitlab::Saml::User, lib: true do create(:omniauth_user, email: 'john@mail.com', extern_uid: 'uid=user1,ou=People,dc=example', provider: 'saml', username: 'john') local_hash = OmniAuth::AuthHash.new(uid: 'uid=user1,ou=People,dc=example', provider: provider, info: info_hash) local_saml_user = described_class.new(local_hash) - local_saml_user.save local_gl_user = local_saml_user.gl_user + expect(local_gl_user).to be_valid expect(local_gl_user.identities.length).to eql 2 identities_as_hash = local_gl_user.identities.map { |id| { provider: id.provider, extern_uid: id.extern_uid } } @@ -194,7 +194,6 @@ describe Gitlab::Saml::User, lib: true do { provider: 'saml', extern_uid: 'uid=user1,ou=People,dc=example' } ]) end - end end end |