mirror of
https://github.com/redmine/redmine.git
synced 2025-11-12 00:06:01 +01:00
Merged r16059, r16060, r16064, r16072.
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@16106 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -95,17 +95,17 @@ class AuthSourceLdapTest < ActiveSupport::TestCase
|
||||
|
||||
test '#authenticate with an invalid LDAP user should return nil' do
|
||||
auth = AuthSourceLdap.find(1)
|
||||
assert_equal nil, auth.authenticate('nouser','123456')
|
||||
assert_nil auth.authenticate('nouser','123456')
|
||||
end
|
||||
|
||||
test '#authenticate without a login should return nil' do
|
||||
auth = AuthSourceLdap.find(1)
|
||||
assert_equal nil, auth.authenticate('','123456')
|
||||
assert_nil auth.authenticate('','123456')
|
||||
end
|
||||
|
||||
test '#authenticate without a password should return nil' do
|
||||
auth = AuthSourceLdap.find(1)
|
||||
assert_equal nil, auth.authenticate('edavis','')
|
||||
assert_nil auth.authenticate('edavis','')
|
||||
end
|
||||
|
||||
test '#authenticate without filter should return any user' do
|
||||
|
||||
Reference in New Issue
Block a user