Fix RSpec/HookArgument
cop (#27747)
This commit is contained in:
parent
1b28ab7263
commit
b06284c572
9 changed files with 16 additions and 30 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue