##// END OF EJS Templates
replace RAILS_ROOT to Rails.root in functional attachments controller test....
Toshi MARUYAMA -
r5957:7f458eb853e7
parent child
Show More
@@ -32,7 +32,7 class AttachmentsControllerTest < ActionController::TestCase
32 @controller = AttachmentsController.new
32 @controller = AttachmentsController.new
33 @request = ActionController::TestRequest.new
33 @request = ActionController::TestRequest.new
34 @response = ActionController::TestResponse.new
34 @response = ActionController::TestResponse.new
35 Attachment.storage_path = "#{RAILS_ROOT}/test/fixtures/files"
35 Attachment.storage_path = "#{Rails.root}/test/fixtures/files"
36 User.current = nil
36 User.current = nil
37 end
37 end
38
38
General Comments 0
You need to be logged in to leave comments. Login now