Commit 656e245a05a3032aac7488660b5b1eb9b3ec37fa
1 parent
d2d3baf5
Exists in
master
and in
29 other branches
CommentNotifier: drop test that does not apply anymore
There will be always a notification email now.
Showing
1 changed file
with
0 additions
and
9 deletions
Show diff stats
test/unit/comment_notifier_test.rb
@@ -57,15 +57,6 @@ class CommentNotifierTest < ActiveSupport::TestCase | @@ -57,15 +57,6 @@ class CommentNotifierTest < ActiveSupport::TestCase | ||
57 | assert_match /comment body/, sent.body.to_s | 57 | assert_match /comment body/, sent.body.to_s |
58 | end | 58 | end |
59 | 59 | ||
60 | - should 'not deliver mail if has no notification emails' do | ||
61 | - community = fast_create(Community) | ||
62 | - assert_equal [], community.notification_emails | ||
63 | - article = fast_create(Article, :name => 'Article test', :profile_id => community.id, :notify_comments => true) | ||
64 | - assert_no_difference 'ActionMailer::Base.deliveries.size' do | ||
65 | - create_comment_and_notify(:author => @author, :title => 'test comment', :body => 'there is no addresses to send notification', :source => article) | ||
66 | - end | ||
67 | - end | ||
68 | - | ||
69 | should "deliver mail to followers" do | 60 | should "deliver mail to followers" do |
70 | author = create_user('follower_author').person | 61 | author = create_user('follower_author').person |
71 | follower = create_user('follower').person | 62 | follower = create_user('follower').person |