2021-09-04 01:27:46 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2021-09-30 23:02:18 +05:30
|
|
|
RSpec.describe 'Mailer retries', :sidekiq_mailers do
|
|
|
|
it 'sets retries for mailers to 3' do
|
2021-09-04 01:27:46 +05:30
|
|
|
DeviseMailer.user_admin_approval(create(:user)).deliver_later
|
|
|
|
|
|
|
|
expect(Sidekiq::Queues['mailers'].first).to include('retry' => 3)
|
|
|
|
end
|
|
|
|
end
|