require 'net/ldap' Spec::Runner.configure do |config| config.mock_with :flexmock end