Commit 92389213608c0142ec1e15a6268d7a43d7be0cdd
1 parent
e049e66d
Exists in
master
and in
28 other branches
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 | 16 | should 'deliver mail after make aarticle commment' do |
| 17 | 17 | p = create_user('user_comment_test').person |
| 18 | 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 | 20 | a.comments << Comment.new(:author => p, :title => 'test comment', :body => 'you suck!') |
| 21 | 21 | end |
| 22 | 22 | end |
| ... | ... | @@ -49,7 +49,7 @@ class CommentNotifierTest < Test::Unit::TestCase |
| 49 | 49 | should 'not deliver mail if notify comments is false' do |
| 50 | 50 | p = create_user('user_comment_test').person |
| 51 | 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 | 53 | a.comments << Comment.new(:author => p, :title => 'test comment', :body => 'you suck!') |
| 54 | 54 | end |
| 55 | 55 | end | ... | ... |