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:
parent
0c2e4a72ca
commit
4f9f68046c
|
@ -126,7 +126,11 @@ class ProjectTest < ActiveSupport::TestCase
|
||||||
p = Project.new
|
p = Project.new
|
||||||
p.identifier = identifier
|
p.identifier = identifier
|
||||||
p.valid?
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue