]> source.dussan.org Git - redmine.git/commitdiff
replace RAILS_ROOT to Rails.root in functional attachments controller test.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 16 Jun 2011 01:53:24 +0000 (01:53 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 16 Jun 2011 01:53:24 +0000 (01:53 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6077 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/attachments_controller_test.rb

index e609299c0f7f3455aa8010cf01eecc7ff93b8b07..1f91da3b0d89314e43dfc0006b534ee2490c0862 100644 (file)
@@ -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