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:
parent
c3b4722c2a
commit
7f458eb853
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue