Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/gitlab/ldap/adapter.rb3
-rw-r--r--spec/lib/gitlab/auth_spec.rb (renamed from spec/lib/auth_spec.rb)0
-rw-r--r--spec/lib/gitlab/ldap/user_spec.rb2
-rw-r--r--spec/lib/gitlab/oauth/user_spec.rb (renamed from spec/lib/oauth_spec.rb)0
4 files changed, 3 insertions, 2 deletions
diff --git a/lib/gitlab/ldap/adapter.rb b/lib/gitlab/ldap/adapter.rb
index ca239bea884..68ac1b22909 100644
--- a/lib/gitlab/ldap/adapter.rb
+++ b/lib/gitlab/ldap/adapter.rb
@@ -86,7 +86,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)
diff --git a/spec/lib/auth_spec.rb b/spec/lib/gitlab/auth_spec.rb
index 073b811c3fb..073b811c3fb 100644
--- a/spec/lib/auth_spec.rb
+++ b/spec/lib/gitlab/auth_spec.rb
diff --git a/spec/lib/gitlab/ldap/user_spec.rb b/spec/lib/gitlab/ldap/user_spec.rb
index 501642dca79..71b316bee2f 100644
--- a/spec/lib/gitlab/ldap/user_spec.rb
+++ b/spec/lib/gitlab/ldap/user_spec.rb
@@ -1,6 +1,6 @@
require 'spec_helper'
-describe Gitlab::LDAP do
+describe Gitlab::LDAP::User do
let(:gl_auth) { Gitlab::LDAP::User }
before do
diff --git a/spec/lib/oauth_spec.rb b/spec/lib/gitlab/oauth/user_spec.rb
index 2f15b5e0349..2f15b5e0349 100644
--- a/spec/lib/oauth_spec.rb
+++ b/spec/lib/gitlab/oauth/user_spec.rb