##// END OF EJS Templates
Use Errors#count instead of #length....
Jean-Philippe Lang -
r8337:d84660c82375
parent child
Show More
@@ -44,7 +44,7 class CommentTest < ActiveSupport::TestCase
44 44 def test_validate
45 45 comment = Comment.new(:commented => @news)
46 46 assert !comment.save
47 assert_equal 2, comment.errors.length
47 assert_equal 2, comment.errors.count
48 48 end
49 49
50 50 def test_destroy
General Comments 0
You need to be logged in to leave comments. Login now