From 966848630448b5ca7d73986715bfcb0b5e62eae9 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Thu, 1 Apr 2021 14:53:10 +0000 Subject: [PATCH] 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 --- test/test_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5