Fix test failure due to missing call to set_tmp_attachments_directory (#32122).

Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18593 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2019-10-04 11:17:33 +00:00
parent b834020297
commit 5ce4a363a9
20 changed files with 62 additions and 18 deletions

View File

@@ -234,6 +234,7 @@ LOREM
end
def test_destroy
set_tmp_attachments_directory
@request.session[:user_id] = 2
assert_difference 'Document.count', -1 do
delete :destroy, :params => {
@@ -245,6 +246,7 @@ LOREM
end
def test_add_attachment
set_tmp_attachments_directory
@request.session[:user_id] = 2
assert_difference 'Attachment.count' do
post :add_attachment, :params => {