Commit 92389213608c0142ec1e15a6268d7a43d7be0cdd

Authored by Antonio Terceiro
1 parent e049e66d

ActionItem862: Array#count does not exist in etch's ruby

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
test/unit/comment_notifier_test.rb
@@ -16,7 +16,7 @@ class CommentNotifierTest < Test::Unit::TestCase @@ -16,7 +16,7 @@ class CommentNotifierTest < Test::Unit::TestCase
16 should 'deliver mail after make aarticle commment' do 16 should 'deliver mail after make aarticle commment' do
17 p = create_user('user_comment_test').person 17 p = create_user('user_comment_test').person
18 a = Article.create!(:name => 'Article test', :profile => p, :notify_comments => true) 18 a = Article.create!(:name => 'Article test', :profile => p, :notify_comments => true)
19 - assert_difference ActionMailer::Base.deliveries, :count do 19 + assert_difference ActionMailer::Base.deliveries, :size do
20 a.comments << Comment.new(:author => p, :title => 'test comment', :body => 'you suck!') 20 a.comments << Comment.new(:author => p, :title => 'test comment', :body => 'you suck!')
21 end 21 end
22 end 22 end
@@ -49,7 +49,7 @@ class CommentNotifierTest &lt; Test::Unit::TestCase @@ -49,7 +49,7 @@ class CommentNotifierTest &lt; Test::Unit::TestCase
49 should 'not deliver mail if notify comments is false' do 49 should 'not deliver mail if notify comments is false' do
50 p = create_user('user_comment_test').person 50 p = create_user('user_comment_test').person
51 a = Article.create!(:name => 'Article test', :profile => p, :notify_comments => false) 51 a = Article.create!(:name => 'Article test', :profile => p, :notify_comments => false)
52 - assert_no_difference ActionMailer::Base.deliveries, :count do 52 + assert_no_difference ActionMailer::Base.deliveries, :size do
53 a.comments << Comment.new(:author => p, :title => 'test comment', :body => 'you suck!') 53 a.comments << Comment.new(:author => p, :title => 'test comment', :body => 'you suck!')
54 end 54 end
55 end 55 end