summaryrefslogtreecommitdiffstats
path: root/test/unit/project_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-26 12:42:36 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-26 12:42:36 +0000
commit4f9f68046cd433c49e9ade796115c6f8f27e0bb0 (patch)
tree6744915e0bab90f09699f8cdd11549b70b485931 /test/unit/project_test.rb
parent0c2e4a72cad67ea429f3855320a8afd913b8c617 (diff)
downloadredmine-4f9f68046cd433c49e9ade796115c6f8f27e0bb0.tar.gz
redmine-4f9f68046cd433c49e9ade796115c6f8f27e0bb0.zip
Makes assertion Rails3 compatible.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8386 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/project_test.rb')
-rw-r--r--test/unit/project_test.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb
index 389b79d5c..39c0e8ab0 100644
--- a/test/unit/project_test.rb
+++ b/test/unit/project_test.rb
@@ -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