Skip to content

A platform for community discussion. Free, open, simple.

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

Roman Rizzi70bf1669bef1
diff --git a/spec/requests/user_avatars_controller_spec.rb b/spec/requests/user_avatars_controller_spec.rb
index 6ed8d882367..9772fe4b2d2 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"