From: Go MAEDA Date: Thu, 1 Apr 2021 14:53:10 +0000 (+0000) Subject: Fix "DEPRECATION WARNING: Passing a path to relative to is deprecated." (#29914). X-Git-Tag: 5.0.0~474 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=966848630448b5ca7d73986715bfcb0b5e62eae9;p=redmine.git Fix "DEPRECATION WARNING: Passing a path to relative to is deprecated." (#29914). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@20885 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/test_helper.rb b/test/test_helper.rb index 8e8815adf..0a5ddb5d9 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -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)