summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-24 14:07:42 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-24 14:07:42 +0000
commit5663ca89facc10db2b9c665ecda6101ece14ce3e (patch)
tree5c88c8743080e7dd19b14ff6ed3e59feefab788a /test
parentee8002b0c9342ccd8db85a2eaa9aa38683cdf0e8 (diff)
downloadredmine-5663ca89facc10db2b9c665ecda6101ece14ce3e.tar.gz
redmine-5663ca89facc10db2b9c665ecda6101ece14ce3e.zip
Fixes error message for LDAP filter (#1060).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9258 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/auth_source_ldap_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/auth_source_ldap_test.rb b/test/unit/auth_source_ldap_test.rb
index 4955a4dc8..1662042b2 100644
--- a/test/unit/auth_source_ldap_test.rb
+++ b/test/unit/auth_source_ldap_test.rb
@@ -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?