Send emails via sidekiq (#380)
* add sidekiq web view if the user is an administrator * add sidekiq setup configuration and support * update devise to use delivery_later method and update test * update conversation to use deliver_later instead of deliver * Update Routes * Add Procfile for Heroku One-Click Start * updating docs * update concurrency and Procfile for supporting Heroku Free Dyno * update Procfile.dev
This commit is contained in:
@@ -35,7 +35,7 @@ RSpec.describe Conversation, type: :model do
|
||||
|
||||
allow(Rails.configuration.dispatcher).to receive(:dispatch)
|
||||
allow(AssignmentMailer).to receive(:conversation_assigned).and_return(assignment_mailer)
|
||||
allow(assignment_mailer).to receive(:deliver)
|
||||
allow(assignment_mailer).to receive(:deliver_later)
|
||||
Current.user = old_assignee
|
||||
|
||||
conversation.update(
|
||||
@@ -68,7 +68,7 @@ RSpec.describe Conversation, type: :model do
|
||||
# send_email_notification_to_assignee
|
||||
expect(AssignmentMailer).to have_received(:conversation_assigned).with(conversation, new_assignee)
|
||||
|
||||
expect(assignment_mailer).to have_received(:deliver) if ENV.fetch('SMTP_ADDRESS', nil).present?
|
||||
expect(assignment_mailer).to have_received(:deliver_later) if ENV.fetch('SMTP_ADDRESS', nil).present?
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user