mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 00:06:05 +02:00
Fixes error message for LDAP filter (#1060).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9258 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -51,7 +51,7 @@ class AuthSourceLdapTest < ActiveSupport::TestCase
|
||||
a = AuthSourceLdap.new(:name => 'My LDAP', :host => 'ldap.example.net', :port => 389, :attr_login => 'sn')
|
||||
a.filter = "(mail=*@redmine.org"
|
||||
assert !a.valid?
|
||||
assert_include "is invalid", a.errors[:filter]
|
||||
assert_include "LDAP filter is invalid", a.errors.full_messages
|
||||
|
||||
a.filter = "(mail=*@redmine.org)"
|
||||
assert a.valid?
|
||||
|
||||
Reference in New Issue
Block a user