diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-02-17 18:08:15 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-02-17 18:08:15 +0000 |
commit | 3dd9687d4151b364569990a3b134ed112b8d2593 (patch) | |
tree | 0543458bbb84225de2675175767c2b0a2cbcd90a /test/test_helper.rb | |
parent | 4f268c5606415bbfe83bcc6e443e98ddaf7747d4 (diff) | |
download | redmine-3dd9687d4151b364569990a3b134ed112b8d2593.tar.gz redmine-3dd9687d4151b364569990a3b134ed112b8d2593.zip |
Fixed: unit tests broken by r3438 (#4860).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3442 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 3 |
1 files changed, 3 insertions, 0 deletions
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 |