Update location where attachment uploads are stored in test environment (#91)
This commit is contained in:
parent
9afbc8c55f
commit
1b52316c16
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue