diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-12-11 15:26:41 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-12-11 15:26:41 +0000 |
commit | bf5dade8df89bd4e519b59846a9007bd0a5911ca (patch) | |
tree | 39f4320fdab714739002a7ea97205349a7a558ac /test/unit/auth_source_ldap_test.rb | |
parent | e937cb533efaf6f56db4fd406612e09133bed11b (diff) | |
download | redmine-bf5dade8df89bd4e519b59846a9007bd0a5911ca.tar.gz redmine-bf5dade8df89bd4e519b59846a9007bd0a5911ca.zip |
Use assert_nil instead of assert_equal.
git-svn-id: http://svn.redmine.org/redmine/trunk@16060 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/auth_source_ldap_test.rb')
-rw-r--r-- | test/unit/auth_source_ldap_test.rb | 6 |
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 |