@@ -126,7 +126,11 class ProjectTest < ActiveSupport::TestCase | |||||
126 | p = Project.new |
|
126 | p = Project.new | |
127 | p.identifier = identifier |
|
127 | p.identifier = identifier | |
128 | p.valid? |
|
128 | p.valid? | |
129 | assert_equal valid, p.errors['identifier'].nil? |
|
129 | if valid | |
|
130 | assert p.errors['identifier'].blank?, "identifier #{identifier} was not valid" | |||
|
131 | else | |||
|
132 | assert p.errors['identifier'].present?, "identifier #{identifier} was valid" | |||
|
133 | end | |||
130 | end |
|
134 | end | |
131 | end |
|
135 | end | |
132 |
|
136 |
General Comments 0
You need to be logged in to leave comments.
Login now