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/user_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/user_test.rb')
-rw-r--r-- | test/unit/user_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb index d39694e94..eb9df3cef 100644 --- a/test/unit/user_test.rb +++ b/test/unit/user_test.rb @@ -611,7 +611,7 @@ class UserTest < ActiveSupport::TestCase @jsmith.save! user = User.try_to_login("jsmith", "jsmith") - assert_equal nil, user + assert_nil user end def test_try_to_login_with_locked_user_and_not_active_only_should_return_user @@ -645,11 +645,11 @@ class UserTest < ActiveSupport::TestCase auth_source = AuthSourceLdap.find(1) AuthSource.any_instance.stubs(:initialize_ldap_con).raises(Net::LDAP::LdapError, 'Cannot connect') - assert_equal nil, User.try_to_login('edavis', 'wrong') + assert_nil User.try_to_login('edavis', 'wrong') end test "#try_to_login using LDAP" do - assert_equal nil, User.try_to_login('edavis', 'wrong') + assert_nil User.try_to_login('edavis', 'wrong') end test "#try_to_login using LDAP binding with user's account" do |