]> source.dussan.org Git - redmine.git/commitdiff
Fixed: unit tests broken by r3438 (#4860).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 17 Feb 2010 18:08:15 +0000 (18:08 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 17 Feb 2010 18:08:15 +0000 (18:08 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3442 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/test_helper.rb

index 484678efc67cd23a77cb50a35f13df22e81a0699..f5cc198ded5b8f48b35144524aab1ce0b66a9616 100644 (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