summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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