Makes assertion Rails3 compatible.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8386 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2011-12-26 12:42:36 +00:00
parent 0c2e4a72ca
commit 4f9f68046c
1 changed files with 5 additions and 1 deletions

View File

@ -126,7 +126,11 @@ class ProjectTest < ActiveSupport::TestCase
p = Project.new
p.identifier = identifier
p.valid?
assert_equal valid, p.errors['identifier'].nil?
if valid
assert p.errors['identifier'].blank?, "identifier #{identifier} was not valid"
else
assert p.errors['identifier'].present?, "identifier #{identifier} was valid"
end
end
end