test/test_helper.rb in net-ldap-0.15.0 vs test/test_helper.rb in net-ldap-0.16.0

- old
+ new

@@ -12,12 +12,20 @@ CA_FILE = ENV.fetch("CA_FILE") do if File.exist?("/etc/ssl/certs/cacert.pem") "/etc/ssl/certs/cacert.pem" else - File.expand_path("fixtures/cacert.pem", File.dirname(__FILE__)) + File.expand_path("fixtures/ca/cacert.pem", File.dirname(__FILE__)) end end + +BIND_CREDS = { + method: :simple, + username: "uid=user1,ou=People,dc=rubyldap,dc=com", + password: "passworD1", +}.freeze + +TLS_OPTS = OpenSSL::SSL::SSLContext::DEFAULT_PARAMS.merge({}).freeze if RUBY_VERSION < "2.0" class String def b self