Replace deprecated Sidekiq::Testing block style (#29097)
				
					
				
			This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user