Removed deprecation messages about mail.deliver()
This commit is contained in:
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user