Use Sidekiq fake!
instead of inline!
in specs (#25369)
This commit is contained in:
parent
ea1c0feb86
commit
00341c70ff
53 changed files with 66 additions and 76 deletions
|
@ -44,7 +44,7 @@ RSpec.describe Admin::Disputes::AppealsController do
|
|||
expect(response).to redirect_to(disputes_strike_path(appeal.strike))
|
||||
end
|
||||
|
||||
it 'notifies target account about approved appeal' do
|
||||
it 'notifies target account about approved appeal', :sidekiq_inline do
|
||||
expect(UserMailer.deliveries.size).to eq(1)
|
||||
expect(UserMailer.deliveries.first.to.first).to eq(target_account.user.email)
|
||||
expect(UserMailer.deliveries.first.subject).to eq(I18n.t('user_mailer.appeal_approved.subject', date: I18n.l(appeal.created_at)))
|
||||
|
@ -62,7 +62,7 @@ RSpec.describe Admin::Disputes::AppealsController do
|
|||
expect(response).to redirect_to(disputes_strike_path(appeal.strike))
|
||||
end
|
||||
|
||||
it 'notifies target account about rejected appeal' do
|
||||
it 'notifies target account about rejected appeal', :sidekiq_inline do
|
||||
expect(UserMailer.deliveries.size).to eq(1)
|
||||
expect(UserMailer.deliveries.first.to.first).to eq(target_account.user.email)
|
||||
expect(UserMailer.deliveries.first.subject).to eq(I18n.t('user_mailer.appeal_rejected.subject', date: I18n.l(appeal.created_at)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue