mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-17 08:36:06 +10:00
Move LDAP tests to proper location
Same patch as gitlab-ce https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/1053
This commit is contained in:
@@ -110,7 +110,8 @@ module Gitlab
|
||||
end
|
||||
|
||||
def dn_matches_filter?(dn, filter)
|
||||
ldap_search(base: dn, filter: filter, scope: Net::LDAP::SearchScope_BaseObject, attributes: %w{dn}).any?
|
||||
ldap_search(base: dn, filter: filter,
|
||||
scope: Net::LDAP::SearchScope_BaseObject, attributes: %w{dn}).any?
|
||||
end
|
||||
|
||||
def ldap_search(*args)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe Gitlab::LDAP do
|
||||
describe Gitlab::LDAP::User do
|
||||
let(:gl_auth) { Gitlab::LDAP::User }
|
||||
|
||||
before do
|
||||
Reference in New Issue
Block a user