From 92389213608c0142ec1e15a6268d7a43d7be0cdd Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Fri, 2 Jan 2009 19:25:23 -0300 Subject: [PATCH] ActionItem862: Array#count does not exist in etch's ruby --- test/unit/comment_notifier_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/comment_notifier_test.rb b/test/unit/comment_notifier_test.rb index 4eac274..6c368b1 100644 --- a/test/unit/comment_notifier_test.rb +++ b/test/unit/comment_notifier_test.rb @@ -16,7 +16,7 @@ class CommentNotifierTest < Test::Unit::TestCase should 'deliver mail after make aarticle commment' do p = create_user('user_comment_test').person a = Article.create!(:name => 'Article test', :profile => p, :notify_comments => true) - assert_difference ActionMailer::Base.deliveries, :count do + assert_difference ActionMailer::Base.deliveries, :size do a.comments << Comment.new(:author => p, :title => 'test comment', :body => 'you suck!') end end @@ -49,7 +49,7 @@ class CommentNotifierTest < Test::Unit::TestCase should 'not deliver mail if notify comments is false' do p = create_user('user_comment_test').person a = Article.create!(:name => 'Article test', :profile => p, :notify_comments => false) - assert_no_difference ActionMailer::Base.deliveries, :count do + assert_no_difference ActionMailer::Base.deliveries, :size do a.comments << Comment.new(:author => p, :title => 'test comment', :body => 'you suck!') end end -- libgit2 0.21.2