Changed assertions to make them work with Rails2/3 ruby1.8/1.9 different behaviours.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9108 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-03-05 11:03:26 +00:00
parent 97ca65d1b2
commit aa9238912b
4 changed files with 6 additions and 6 deletions

View File

@@ -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_equal "is invalid", a.errors[:filter].to_s
assert_include "is invalid", a.errors[:filter]
a.filter = "(mail=*@redmine.org)"
assert a.valid?