]> source.dussan.org Git - redmine.git/commitdiff
Fix "DEPRECATION WARNING: Passing a path to relative to is deprecated." (#29914).
authorGo MAEDA <maeda@farend.jp>
Thu, 1 Apr 2021 14:53:10 +0000 (14:53 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 1 Apr 2021 14:53:10 +0000 (14:53 +0000)
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@20885 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/test_helper.rb

index 8e8815adf5a0b82555cc85f8b3eb5076c28a5419..0a5ddb5d9dade83540dd719d9aa6c73ac0238456 100644 (file)
@@ -59,7 +59,7 @@ class ActiveSupport::TestCase
   self.use_instantiated_fixtures  = false
 
   def uploaded_test_file(name, mime)
-    fixture_file_upload("files/#{name}", mime, true)
+    fixture_file_upload(name.to_s, mime, true)
   end
 
   def mock_file(options=nil)