summaryrefslogtreecommitdiffstats
path: root/test/unit/user_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-07-08 13:46:47 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-07-08 13:46:47 +0000
commit2bc719e2c8deccaedc523ffa6ae2849321fc5cc3 (patch)
tree16d765af721c77e8634973b68cfcbc6dbe97bc0e /test/unit/user_test.rb
parent21e00bfdbf31e18d957127f64f62a841dab84925 (diff)
downloadredmine-2bc719e2c8deccaedc523ffa6ae2849321fc5cc3.tar.gz
redmine-2bc719e2c8deccaedc523ffa6ae2849321fc5cc3.zip
LdapError is deprecated (#24970).
git-svn-id: http://svn.redmine.org/redmine/trunk@16773 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/user_test.rb')
-rw-r--r--test/unit/user_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb
index 858dc3209..f9678c749 100644
--- a/test/unit/user_test.rb
+++ b/test/unit/user_test.rb
@@ -661,7 +661,7 @@ class UserTest < ActiveSupport::TestCase
if ldap_configured?
test "#try_to_login using LDAP with failed connection to the LDAP server" do
auth_source = AuthSourceLdap.find(1)
- AuthSource.any_instance.stubs(:initialize_ldap_con).raises(Net::LDAP::LdapError, 'Cannot connect')
+ AuthSource.any_instance.stubs(:initialize_ldap_con).raises(Net::LDAP::Error, 'Cannot connect')
assert_nil User.try_to_login('edavis', 'wrong')
end