Added some tests for the LDAP authentication.
Includes an export of an LDAP database to use in testing. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3438 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -76,6 +76,11 @@ class ActiveSupport::TestCase
|
||||
saved_settings.each {|k, v| Setting[k] = v}
|
||||
end
|
||||
|
||||
def self.ldap_configured?
|
||||
@test_ldap = Net::LDAP.new(:host => '127.0.0.1', :port => 389)
|
||||
return @test_ldap.bind
|
||||
end
|
||||
|
||||
# Shoulda macros
|
||||
def self.should_render_404
|
||||
should_respond_with :not_found
|
||||
|
||||
Reference in New Issue
Block a user