Update location where attachment uploads are stored in test environment (#91)

This commit is contained in:
Arun Kumar Mohan 2019-10-02 08:56:09 -05:00 committed by Pranav Raj S
parent 9afbc8c55f
commit 1b52316c16

View file

@ -3,7 +3,7 @@ class AttachmentUploader < CarrierWave::Uploader::Base
def store_dir
if Rails.env.test?
"#{Rails.root}/spec/support/uploads/avatar/#{model.class.to_s.underscore}/#{model.id}"
"#{Rails.root}/spec/support/uploads/attachments/#{model.class.to_s.underscore}/#{model.id}"
else
"uploads/attachments/#{model.class.to_s.underscore}/#{model.id}"
end