summaryrefslogtreecommitdiffstats
path: root/test/unit/wiki_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/unit/wiki_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/unit/wiki_test.rb')
-rw-r--r--test/unit/wiki_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/unit/wiki_test.rb b/test/unit/wiki_test.rb
index b4ecd29bb..d4688569d 100644
--- a/test/unit/wiki_test.rb
+++ b/test/unit/wiki_test.rb
@@ -103,6 +103,7 @@ class WikiTest < ActiveSupport::TestCase
end
def test_destroy_should_remove_redirects_from_the_wiki
+ set_tmp_attachments_directory
WikiRedirect.create!(:wiki_id => 1, :title => 'Foo', :redirects_to_wiki_id => 2, :redirects_to => 'Bar')
Wiki.find(1).destroy
@@ -110,6 +111,7 @@ class WikiTest < ActiveSupport::TestCase
end
def test_destroy_should_remove_redirects_to_the_wiki
+ set_tmp_attachments_directory
WikiRedirect.create!(:wiki_id => 2, :title => 'Foo', :redirects_to_wiki_id => 1, :redirects_to => 'Bar')
Wiki.find(1).destroy