summaryrefslogtreecommitdiffstats
path: root/test/unit/auth_source_ldap_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-12-20 16:02:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-12-20 16:02:38 +0000
commit5dd1fe1345f43c1cd602d611c8a799f6ce59c298 (patch)
tree83a464f09554d599a624af3aa680f1fe060acf2d /test/unit/auth_source_ldap_test.rb
parent21a847d01d9e950e5712aab04052e06275fa1baa (diff)
downloadredmine-5dd1fe1345f43c1cd602d611c8a799f6ce59c298.tar.gz
redmine-5dd1fe1345f43c1cd602d611c8a799f6ce59c298.zip
Merged r16059, r16060, r16064, r16072.
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@16106 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/auth_source_ldap_test.rb')
-rw-r--r--test/unit/auth_source_ldap_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/auth_source_ldap_test.rb b/test/unit/auth_source_ldap_test.rb
index bf549218b..eac13ff70 100644
--- a/test/unit/auth_source_ldap_test.rb
+++ b/test/unit/auth_source_ldap_test.rb
@@ -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