summaryrefslogtreecommitdiffstats
path: root/test/functional/wiki_controller_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-01-04 04:47:38 +0000
committerGo MAEDA <maeda@farend.jp>2020-01-04 04:47:38 +0000
commitf55aa769583491cc0a02273c76c75ad2f39cfb99 (patch)
treee98bbb06e5397a40ec1c504a32acbf5aad80992b /test/functional/wiki_controller_test.rb
parent7afb5b7f926f9ee9104baaa33c740e38514439e7 (diff)
downloadredmine-f55aa769583491cc0a02273c76c75ad2f39cfb99.tar.gz
redmine-f55aa769583491cc0a02273c76c75ad2f39cfb99.zip
Fix random test failure due to missing call to set_tmp_attachments_directory in WikiControllerTest (#32653).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@19406 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/wiki_controller_test.rb')
-rw-r--r--test/functional/wiki_controller_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb
index e3ac6cb4e..70b892ba5 100644
--- a/test/functional/wiki_controller_test.rb
+++ b/test/functional/wiki_controller_test.rb
@@ -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