summaryrefslogtreecommitdiff
path: root/spec/support/ldap_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/ldap_helpers.rb')
-rw-r--r--spec/support/ldap_helpers.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/support/ldap_helpers.rb b/spec/support/ldap_helpers.rb
index 079f244475c..ab635711cf7 100644
--- a/spec/support/ldap_helpers.rb
+++ b/spec/support/ldap_helpers.rb
@@ -16,8 +16,8 @@ module LdapHelpers
# )
def stub_ldap_config(messages)
messages.each do |config, value|
- allow_any_instance_of(::Gitlab::LDAP::Config)
- .to receive(config.to_sym).and_return(value)
+ allow_any_instance_of(::Gitlab::LDAP::Config).
+ to receive(config.to_sym).and_return(value)
end
end
@@ -32,8 +32,8 @@ module LdapHelpers
def stub_ldap_person_find_by_uid(uid, entry, provider = 'ldapmain')
return_value = ::Gitlab::LDAP::Person.new(entry, provider) if entry.present?
- allow(::Gitlab::LDAP::Person)
- .to receive(:find_by_uid).with(uid, any_args).and_return(return_value)
+ allow(::Gitlab::LDAP::Person).
+ to receive(:find_by_uid).with(uid, any_args).and_return(return_value)
end
# Create a simple LDAP user entry.