summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2023-10-23 17:33:40 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2023-10-23 17:33:40 +0000
commitf1437b7ec59ba9126d93b239d29c85820e7154e4 (patch)
treee958bf1f2b6aa7664e929b894b15448da446d030 /test/unit
parent94da4a33f5d9353d4b8228163462d5711721285f (diff)
downloadredmine-f1437b7ec59ba9126d93b239d29c85820e7154e4.tar.gz
redmine-f1437b7ec59ba9126d93b239d29c85820e7154e4.zip
Reinitialize an empty Wiki page after after project wiki is deleted (#34634).
git-svn-id: https://svn.redmine.org/redmine/trunk@22370 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/wiki_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/wiki_test.rb b/test/unit/wiki_test.rb
index da791dff4..eeb6aa2bb 100644
--- a/test/unit/wiki_test.rb
+++ b/test/unit/wiki_test.rb
@@ -35,6 +35,12 @@ class WikiTest < ActiveSupport::TestCase
assert wiki.save
end
+ def test_create_default
+ wiki = Wiki.create_default(Project.find(1))
+ assert wiki.save
+ assert_equal "Wiki", wiki.start_page
+ end
+
def test_update
@wiki = Wiki.find(1)
@wiki.start_page = "Another start page"