summaryrefslogtreecommitdiffstats
path: root/test/unit/auth_source_ldap_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/auth_source_ldap_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/auth_source_ldap_test.rb')
-rw-r--r--test/unit/auth_source_ldap_test.rb6
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 c7676f14c..376fdf730 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
@@ -169,7 +169,7 @@ class AuthSourceLdapTest < ActiveSupport::TestCase
auth_source.host = "badhost"
auth_source.save!
- assert_raise Net::LDAP::Error do
+ assert_raise AuthSourceException do
auth_source.test_connection
end
end
@@ -179,7 +179,7 @@ class AuthSourceLdapTest < ActiveSupport::TestCase
auth_source.port = 1234
auth_source.save!
- assert_raise Net::LDAP::Error do
+ assert_raise AuthSourceException do
auth_source.test_connection
end
end