From 3dd9687d4151b364569990a3b134ed112b8d2593 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 17 Feb 2010 18:08:15 +0000 Subject: [PATCH] Fixed: unit tests broken by r3438 (#4860). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3442 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/test_helper.rb | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.5