Use Sidekiq fake! instead of inline! in specs (#25369)
This commit is contained in:
@@ -166,7 +166,7 @@ RSpec.describe NotifyService, type: :service do
|
||||
context 'when email notification is enabled' do
|
||||
let(:enabled) { true }
|
||||
|
||||
it 'sends email' do
|
||||
it 'sends email', :sidekiq_inline do
|
||||
expect { subject }.to change(ActionMailer::Base.deliveries, :count).by(1)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user