mirror of
				https://github.com/redmine/redmine.git
				synced 2025-11-03 20:06:24 +01:00 
			
		
		
		
	LdapError is deprecated (#24970).
git-svn-id: http://svn.redmine.org/redmine/trunk@16773 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user