@@ -44,7 +44,7 class CommentTest < ActiveSupport::TestCase | |||||
44 | def test_validate |
|
44 | def test_validate | |
45 | comment = Comment.new(:commented => @news) |
|
45 | comment = Comment.new(:commented => @news) | |
46 | assert !comment.save |
|
46 | assert !comment.save | |
47 |
assert_equal 2, comment.errors. |
|
47 | assert_equal 2, comment.errors.count | |
48 | end |
|
48 | end | |
49 |
|
49 | |||
50 | def test_destroy |
|
50 | def test_destroy |
General Comments 0
You need to be logged in to leave comments.
Login now