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:
parent
979a4ecb22
commit
d84660c823
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue