summaryrefslogtreecommitdiffstats
path: root/test/unit/auth_source_ldap_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/auth_source_ldap_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/auth_source_ldap_test.rb')
-rw-r--r--test/unit/auth_source_ldap_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/auth_source_ldap_test.rb b/test/unit/auth_source_ldap_test.rb
index eac13ff70..3ce7fa98e 100644
--- a/test/unit/auth_source_ldap_test.rb
+++ b/test/unit/auth_source_ldap_test.rb
@@ -150,7 +150,7 @@ class AuthSourceLdapTest < ActiveSupport::TestCase
end
def test_search_with_exception_should_return_an_empty_array
- Net::LDAP.stubs(:new).raises(Net::LDAP::LdapError, 'Cannot connect')
+ Net::LDAP.stubs(:new).raises(Net::LDAP::Error, 'Cannot connect')
results = AuthSource.search("exa")
assert_equal [], results