diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2023-10-23 17:33:40 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2023-10-23 17:33:40 +0000 |
commit | f1437b7ec59ba9126d93b239d29c85820e7154e4 (patch) | |
tree | e958bf1f2b6aa7664e929b894b15448da446d030 /test/unit | |
parent | 94da4a33f5d9353d4b8228163462d5711721285f (diff) | |
download | redmine-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.rb | 6 |
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" |