0
0
Fork 0

Fix RSpec/HookArgument cop (#27747)

This commit is contained in:
Matt Jankowski 2023-11-07 04:10:36 -05:00 committed by GitHub
parent 1b28ab7263
commit b06284c572
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 16 additions and 30 deletions

View file

@ -142,13 +142,13 @@ RSpec.configure do |config|
search_data_manager.remove_indexes
end
config.before(:each) do |example|
config.before do |example|
unless example.metadata[:paperclip_processing]
allow_any_instance_of(Paperclip::Attachment).to receive(:post_process).and_return(true) # rubocop:disable RSpec/AnyInstance
end
end
config.after :each do
config.after do
Rails.cache.clear
redis.del(redis.keys)
end