Fixed: unit tests broken by r3438 (#4860).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3442 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2010-02-17 18:08:15 +00:00
parent 4f268c5606
commit 3dd9687d41
1 changed files with 3 additions and 0 deletions

View File

@ -79,6 +79,9 @@ class ActiveSupport::TestCase
def self.ldap_configured?
@test_ldap = Net::LDAP.new(:host => '127.0.0.1', :port => 389)
return @test_ldap.bind
rescue Exception => e
# LDAP is not listening
return nil
end
# Shoulda macros