From: Jean-Philippe Lang Date: Wed, 17 Feb 2010 18:08:15 +0000 (+0000) Subject: Fixed: unit tests broken by r3438 (#4860). X-Git-Tag: 1.0.0~340 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3dd9687d4151b364569990a3b134ed112b8d2593;p=redmine.git Fixed: unit tests broken by r3438 (#4860). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3442 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/test_helper.rb b/test/test_helper.rb index 484678efc..f5cc198de 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -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