summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
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"