Commit 13e35f25 authored by Rémy Coutable's avatar Rémy Coutable

Fix UsersFinder#by_non_ldap

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 93138913
......@@ -30,7 +30,7 @@ class UsersFinder
users = by_active(users)
users = by_external_identity(users)
users = by_external(users)
users = by_ldap(users)
users = by_non_ldap(users)
users
end
......
......@@ -58,7 +58,7 @@ describe UsersFinder do
it 'returns only non-ldap users with skip_ldap: true' do
users = described_class.new(user, skip_ldap: true).execute
expect(users).not_to contain_exactly(user, user1, user2, omniauth_user)
expect(users).to contain_exactly(user, user1, user2, omniauth_user)
end
end
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