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