From 5ce4a363a951e4a64afd29bbe216b83fe4fdcc12 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Fri, 4 Oct 2019 11:17:33 +0000 Subject: 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 --- test/functional/wiki_controller_test.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/functional/wiki_controller_test.rb') diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb index 6ee3bff51..7d36ea3f2 100644 --- a/test/functional/wiki_controller_test.rb +++ b/test/functional/wiki_controller_test.rb @@ -273,6 +273,7 @@ class WikiControllerTest < Redmine::ControllerTest end def test_create_page_with_attachments + set_tmp_attachments_directory @request.session[:user_id] = 2 assert_difference 'WikiPage.count' do assert_difference 'Attachment.count' do @@ -443,6 +444,7 @@ class WikiControllerTest < Redmine::ControllerTest end def test_update_page_with_attachments_only_should_not_create_content_version + set_tmp_attachments_directory @request.session[:user_id] = 2 assert_no_difference 'WikiPage.count' do assert_no_difference 'WikiContent.count' do @@ -1179,6 +1181,7 @@ class WikiControllerTest < Redmine::ControllerTest end def test_add_attachment + set_tmp_attachments_directory @request.session[:user_id] = 2 assert_difference 'Attachment.count' do post :add_attachment, :params => { -- cgit v1.2.3