diff options
-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 |