From bf66db6ef9c7c751449808ed84b8e8306b2029bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Mon, 31 Oct 2016 20:36:39 +0100 Subject: [PATCH] Don't try net/ldap connection on CI --- spec_legacy/support/legacy_assertions.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec_legacy/support/legacy_assertions.rb b/spec_legacy/support/legacy_assertions.rb index 4eb2ae0a85..4cfd021a20 100644 --- a/spec_legacy/support/legacy_assertions.rb +++ b/spec_legacy/support/legacy_assertions.rb @@ -204,6 +204,8 @@ module LegacyAssertionsAndHelpers module ClassMethods def ldap_configured? + return false if !!ENV['CI'] + @test_ldap = Net::LDAP.new(host: '127.0.0.1', port: 389) return @test_ldap.bind rescue Exception => e