summaryrefslogtreecommitdiffstats
path: root/test/unit/comment_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-01 17:23:12 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-01 17:23:12 +0000
commitd84660c823757336e846fe602ed0aa52865c9346 (patch)
tree78f69f33600f54c414f7bbc6e173d936192e2264 /test/unit/comment_test.rb
parent979a4ecb2295ad8c0fb71f947da2d60c0843ab3b (diff)
downloadredmine-d84660c823757336e846fe602ed0aa52865c9346.tar.gz
redmine-d84660c823757336e846fe602ed0aa52865c9346.zip
Use Errors#count instead of #length.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8457 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/comment_test.rb')
-rw-r--r--test/unit/comment_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/comment_test.rb b/test/unit/comment_test.rb
index 371dcea01..dd9fe23fe 100644
--- a/test/unit/comment_test.rb
+++ b/test/unit/comment_test.rb
@@ -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