DEV: Use a copy of the fixture file instead of the original one (#9645)

DEV: Use a copy of the fixture file instead of the original one (#9645)

diff --git a/spec/requests/user_avatars_controller_spec.rb b/spec/requests/user_avatars_controller_spec.rb
index 6ed8d88..9772fe4 100644
--- a/spec/requests/user_avatars_controller_spec.rb
+++ b/spec/requests/user_avatars_controller_spec.rb
@@ -27,7 +27,7 @@ describe UserAvatarsController do
       # travis is not good here, no image magick
       if !ENV["TRAVIS"]
         let :upload do
-          File.open("#{Rails.root}/spec/fixtures/images/cropped.png") do |f|
+          File.open(file_from_fixtures("cropped.png")) do |f|
             UploadCreator.new(
               f,
               "test.png"

GitHub sha: 70bf1669

This commit appears in #9645 which was approved by eviltrout. It was merged by romanrizzi.