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