From 656e245a05a3032aac7488660b5b1eb9b3ec37fa Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Fri, 26 Sep 2014 10:17:13 -0300 Subject: [PATCH] CommentNotifier: drop test that does not apply anymore --- test/unit/comment_notifier_test.rb | 9 --------- 1 file changed, 0 insertions(+), 9 deletions(-) diff --git a/test/unit/comment_notifier_test.rb b/test/unit/comment_notifier_test.rb index 157a0c9..e03df70 100644 --- a/test/unit/comment_notifier_test.rb +++ b/test/unit/comment_notifier_test.rb @@ -57,15 +57,6 @@ class CommentNotifierTest < ActiveSupport::TestCase assert_match /comment body/, sent.body.to_s end - should 'not deliver mail if has no notification emails' do - community = fast_create(Community) - assert_equal [], community.notification_emails - article = fast_create(Article, :name => 'Article test', :profile_id => community.id, :notify_comments => true) - assert_no_difference 'ActionMailer::Base.deliveries.size' do - create_comment_and_notify(:author => @author, :title => 'test comment', :body => 'there is no addresses to send notification', :source => article) - end - end - should "deliver mail to followers" do author = create_user('follower_author').person follower = create_user('follower').person -- libgit2 0.21.2