Consolidate configuration of Sidekiq::Testing.fake!
setup (#28046)
This commit is contained in:
parent
c810b197ad
commit
973597c6f1
10 changed files with 28 additions and 65 deletions
|
@ -12,14 +12,7 @@ RSpec.describe BulkImportService do
|
|||
import.update(total_items: import.rows.count)
|
||||
end
|
||||
|
||||
describe '#call' do
|
||||
around do |example|
|
||||
Sidekiq::Testing.fake! do
|
||||
example.run
|
||||
Sidekiq::Worker.clear_all
|
||||
end
|
||||
end
|
||||
|
||||
describe '#call', :sidekiq_fake do
|
||||
context 'when importing follows' do
|
||||
let(:import_type) { 'following' }
|
||||
let(:overwrite) { false }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue