]> source.dussan.org Git - redmine.git/commitdiff
Fix random test failure due to missing call to set_tmp_attachments_directory in WikiC...
authorGo MAEDA <maeda@farend.jp>
Sat, 4 Jan 2020 04:47:38 +0000 (04:47 +0000)
committerGo MAEDA <maeda@farend.jp>
Sat, 4 Jan 2020 04:47:38 +0000 (04:47 +0000)
Patch by Yuichi HARADA.

git-svn-id: http://svn.redmine.org/redmine/trunk@19406 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/wiki_controller_test.rb

index e3ac6cb4e376fdd535c1b958602c75e35987d333..70b892ba5b6bfab6c8ac451693449264624e7d7e 100644 (file)
@@ -467,6 +467,7 @@ class WikiControllerTest < Redmine::ControllerTest
   end
 
   def test_update_with_deleted_attachment_ids
+    set_tmp_attachments_directory
     @request.session[:user_id] = 2
     page = WikiPage.find(4)
     attachment = page.attachments.first
@@ -486,6 +487,7 @@ class WikiControllerTest < Redmine::ControllerTest
   end
 
   def test_update_with_deleted_attachment_ids_and_failure_should_preserve_selected_attachments
+    set_tmp_attachments_directory
     @request.session[:user_id] = 2
     page = WikiPage.find(4)
     attachment = page.attachments.first