mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-26 04:55:07 +01:00
Replace deprecated Sidekiq::Testing
block style (#29097)
This commit is contained in:
parent
df7acdcee5
commit
577520b637
@ -95,8 +95,13 @@ RSpec.configure do |config|
|
|||||||
self.use_transactional_tests = true
|
self.use_transactional_tests = true
|
||||||
end
|
end
|
||||||
|
|
||||||
config.around(:each, :sidekiq_inline) do |example|
|
config.around do |example|
|
||||||
Sidekiq::Testing.inline!(&example)
|
if example.metadata[:sidekiq_inline] == true
|
||||||
|
Sidekiq::Testing.inline!
|
||||||
|
else
|
||||||
|
Sidekiq::Testing.fake!
|
||||||
|
end
|
||||||
|
example.run
|
||||||
end
|
end
|
||||||
|
|
||||||
config.before :each, type: :cli do
|
config.before :each, type: :cli do
|
||||||
|
Loading…
Reference in New Issue
Block a user