Commit 8ad86cc9 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Mock the correct `external_email` method.

parent c8b11b0c
......@@ -8,7 +8,7 @@ describe Gitlab::LDAP::Access, lib: true do
describe '#find_ldap_user' do
it 'finds a user by dn first' do
expect(Gitlab::LDAP::Person).to receive(:find_by_dn).and_return(:ldap_user)
expect(user).not_to receive(:ldap_email?)
expect(user).not_to receive(:external_email?)
access.find_ldap_user
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment