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
|
@ -10,13 +10,7 @@ describe PollExpirationNotifyWorker do
|
|||
let(:remote?) { false }
|
||||
let(:poll_vote) { Fabricate(:poll_vote, poll: poll) }
|
||||
|
||||
describe '#perform' do
|
||||
around do |example|
|
||||
Sidekiq::Testing.fake! do
|
||||
example.run
|
||||
end
|
||||
end
|
||||
|
||||
describe '#perform', :sidekiq_fake do
|
||||
it 'runs without error for missing record' do
|
||||
expect { worker.perform(nil) }.to_not raise_error
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue