Use Errors#count instead of #length.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8457 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-01-01 17:23:12 +00:00
parent 979a4ecb22
commit d84660c823
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class CommentTest < ActiveSupport::TestCase
def test_validate
comment = Comment.new(:commented => @news)
assert !comment.save
assert_equal 2, comment.errors.length
assert_equal 2, comment.errors.count
end
def test_destroy