From: Toshi MARUYAMA Date: Thu, 16 Jun 2011 01:53:24 +0000 (+0000) Subject: replace RAILS_ROOT to Rails.root in functional attachments controller test. X-Git-Tag: 1.3.0~1814 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7f458eb853e7ba533d2cecc58c02fd3515953c4d;p=redmine.git 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 --- 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