summaryrefslogtreecommitdiffstats
path: root/test/unit/user_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2017-02-02 02:24:50 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2017-02-02 02:24:50 +0000
commitd37125dfe98b295cb8dd15d7c12ed2c97a122e8d (patch)
treecf5bed1acd4852ca8a2ad299b102a6f74e612aae /test/unit/user_test.rb
parentfe906e4fb6b36b1d5e3c796cf0a256a427a8b228 (diff)
downloadredmine-d37125dfe98b295cb8dd15d7c12ed2c97a122e8d.tar.gz
redmine-d37125dfe98b295cb8dd15d7c12ed2c97a122e8d.zip
replace depricated Net::LDAP::LdapError by Net::LDAP::Error (#24970)
git-svn-id: http://svn.redmine.org/redmine/trunk@16322 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 ebc7d6532..3b42a7dec 100644
--- a/test/unit/user_test.rb
+++ b/test/unit/user_test.rb
@@ -643,7 +643,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