fix: Facebook reauthorization mailer (#4695)

This commit is contained in:
Tejaswini Chile
2022-06-07 17:50:51 +05:30
committed by GitHub
parent bad24f97ab
commit 772d92a4d3
9 changed files with 49 additions and 5 deletions

View File

@@ -22,9 +22,11 @@ RSpec.describe Channel::FacebookPage do
it 'calls channel notifier mail for facebook' do
admin_mailer = double
mailer_double = double
expect(AdministratorNotifications::ChannelNotificationsMailer).to receive(:with).and_return(admin_mailer)
expect(admin_mailer).to receive(:facebook_disconnect).with(channel.inbox).and_return(mailer_double)
expect(mailer_double).to receive(:deliver_later)
channel.prompt_reauthorization!
end
end