summaryrefslogtreecommitdiffstats
path: root/test/functional/documents_controller_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-10-04 11:17:33 +0000
committerGo MAEDA <maeda@farend.jp>2019-10-04 11:17:33 +0000
commit5ce4a363a951e4a64afd29bbe216b83fe4fdcc12 (patch)
tree33f3e2c8f59467f435f7a0f960b21d58eff87d73 /test/functional/documents_controller_test.rb
parentb83402029721fd5813e3ae6c1eea5fc644651ebf (diff)
downloadredmine-5ce4a363a951e4a64afd29bbe216b83fe4fdcc12.tar.gz
redmine-5ce4a363a951e4a64afd29bbe216b83fe4fdcc12.zip
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
Diffstat (limited to 'test/functional/documents_controller_test.rb')
-rw-r--r--test/functional/documents_controller_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/documents_controller_test.rb b/test/functional/documents_controller_test.rb
index d0e586649..8eb741249 100644
--- a/test/functional/documents_controller_test.rb
+++ b/test/functional/documents_controller_test.rb
@@ -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 => {