From 7f458eb853e7ba533d2cecc58c02fd3515953c4d Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 16 Jun 2011 01:53:24 +0000 Subject: [PATCH] replace RAILS_ROOT to Rails.root in functional attachments controller test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6077 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/attachments_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/attachments_controller_test.rb b/test/functional/attachments_controller_test.rb index e609299c0..1f91da3b0 100644 --- a/test/functional/attachments_controller_test.rb +++ b/test/functional/attachments_controller_test.rb @@ -32,7 +32,7 @@ class AttachmentsControllerTest < ActionController::TestCase @controller = AttachmentsController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new - Attachment.storage_path = "#{RAILS_ROOT}/test/fixtures/files" + Attachment.storage_path = "#{Rails.root}/test/fixtures/files" User.current = nil end -- 2.39.5