diff options
author | Drew Blessing <drew@gitlab.com> | 2015-12-08 09:47:42 -0600 |
---|---|---|
committer | Drew Blessing <drew@gitlab.com> | 2015-12-08 11:15:30 -0600 |
commit | bf5683f8892c4aefc4c996812ece6291b701dada (patch) | |
tree | 0d16e4ef7bd4232b83882fc210b84771f6ae0c81 /spec | |
parent | 14165e59726b0813af90f785037d96d0973adf6d (diff) | |
download | gitlab-ce-bf5683f8892c4aefc4c996812ece6291b701dada.tar.gz |
Block LDAP user when they are no longer found in the LDAP server
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/ldap/access_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/lib/gitlab/ldap/access_spec.rb b/spec/lib/gitlab/ldap/access_spec.rb index c38f212b405..960547a0ad7 100644 --- a/spec/lib/gitlab/ldap/access_spec.rb +++ b/spec/lib/gitlab/ldap/access_spec.rb @@ -13,6 +13,11 @@ describe Gitlab::LDAP::Access do end it { is_expected.to be_falsey } + + it 'should block user in GitLab' do + access.allowed? + expect(user).to be_blocked + end end context 'when the user is found' do |