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
This commit is contained in:
Toshi MARUYAMA 2011-06-16 01:53:24 +00:00
parent c3b4722c2a
commit 7f458eb853
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class AttachmentsControllerTest < ActionController::TestCase
@controller = AttachmentsController.new @controller = AttachmentsController.new
@request = ActionController::TestRequest.new @request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new @response = ActionController::TestResponse.new
Attachment.storage_path = "#{RAILS_ROOT}/test/fixtures/files" Attachment.storage_path = "#{Rails.root}/test/fixtures/files"
User.current = nil User.current = nil
end end