1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Replace deprecated Sidekiq::Testing block style (#29097)

This commit is contained in:
Matt Jankowski 2024-02-06 07:49:48 -05:00 committed by GitHub
parent df7acdcee5
commit 577520b637
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -95,8 +95,13 @@ RSpec.configure do |config|
self.use_transactional_tests = true
end
config.around(:each, :sidekiq_inline) do |example|
Sidekiq::Testing.inline!(&example)
config.around do |example|
if example.metadata[:sidekiq_inline] == true
Sidekiq::Testing.inline!
else
Sidekiq::Testing.fake!
end
example.run
end
config.before :each, type: :cli do