Removed deprecation messages about mail.deliver()

This commit is contained in:
Saverio Trioni
2015-10-17 17:34:44 +02:00
parent 1b4739c889
commit 0da62a8983
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ class OrganizationNotifierService
@organization.each do |org|
posts = org.posts.active.of_active_members.from_last_week
if posts.present?
OrganizationNotifier.recent_posts(posts).deliver
OrganizationNotifier.recent_posts(posts).deliver_now
end
end
end

View File

@ -32,7 +32,7 @@ describe OrganizationNotifier do
ActionMailer::Base.delivery_method = :test
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.deliveries = []
OrganizationNotifier.recent_posts(test_organization.posts).deliver
OrganizationNotifier.recent_posts(test_organization.posts).deliver_now
end
after(:each) do