Sha256: 4007fa6cf87706a98dead677fbae46885e29cbd2dcd044554fd4c5c6baa3f8e1
Contents?: true
Size: 733 Bytes
Versions: 3
Compression:
Stored size: 733 Bytes
Contents
ENV["RAILS_ENV"] = "test" require File.expand_path('../../config/environment', __FILE__) require 'rails/test_help' class ActiveSupport::TestCase def reset_ldap_server! `ldapmodify -x -h localhost -p 3389 -D "cn=admin,dc=test,dc=com" -w secret -f ../ldap/clear.ldif` `ldapadd -x -h localhost -p 3389 -D "cn=admin,dc=test,dc=com" -w secret -f ../ldap/base.ldif` end def default_devise_settings! ::Devise.ldap_logger = true ::Devise.ldap_create_user = false ::Devise.ldap_update_password = true ::Devise.ldap_config = "#{Rails.root}/config/ldap.yml" ::Devise.ldap_check_group_membership = false ::Devise.ldap_check_attributes = false ::Devise.authentication_keys = [:email] end end
Version data entries
3 entries across 3 versions & 1 rubygems