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

This commit is contained in:
Roman Rizzi 2020-05-06 11:54:08 -03:00 committed by GitHub
parent 7c2d3275f4
commit 70bf1669be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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"