From ae1fac006206ab28cd7cba63ab85c07a27f3d606 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 5 Sep 2016 17:46:36 +0200 Subject: Add API to upload media attachments --- config/environments/test.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config/environments/test.rb') diff --git a/config/environments/test.rb b/config/environments/test.rb index fea1c51fd..1855aadf2 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -41,3 +41,5 @@ Rails.application.configure do # Raises error for missing translations # config.action_view.raise_on_missing_translations = true end + +Paperclip::Attachment.default_options[:path] = "#{Rails.root}/spec/test_files/:class/:id_partition/:style.:extension" -- cgit