Update CACHE to Rails.cache.
Fix test for ArtistUrl.
Fix test for Ban.
Replace all CACHE.flush_all to Rails.cache.clear.
Mass-fix post creation call with seds.

find test/ -type f -exec sed -i -e 's/upload_jpeg/upload_file/g' {} \;
find test/ -type f -exec sed -i -e 's/RAILS_ROOT/Rails.root/' {} \;

--HG--
extra : amend_source : 49132fffc25f0b60b05c9379934e9c7bbcf9f7e6
Autofix with latest rubocop.
Immediate return instead of assignment.
Move ActionMailer default url option to config/application.rb.
Simplify content_for_prefix.