From f28e572c65542449f83cd8de89e47ebd8dc4c10d Mon Sep 17 00:00:00 2001 From: Alexey Verkhovsky Date: Mon, 17 Jan 2005 20:03:49 +0000 Subject: [PATCH] Added a test for tex action --- test/functional/wiki_controller_test.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb index 28c1787e..18d26a6d 100755 --- a/test/functional/wiki_controller_test.rb +++ b/test/functional/wiki_controller_test.rb @@ -558,6 +558,20 @@ class WikiControllerTest < Test::Unit::TestCase end + def test_tex + r = process('tex', 'web' => 'wiki1', 'id' => 'HomePage') + assert_success + + assert_equal "\\documentclass[12pt,titlepage]{article}\n\n\\usepackage[danish]{babel} " + + "%danske tekster\n\\usepackage[OT1]{fontenc} %rigtige danske bogstaver...\n" + + "\\usepackage{a4}\n\\usepackage{graphicx}\n\\usepackage{ucs}\n\\usepackage[utf8x]" + + "{inputenc}\n\\input epsf \n\n%----------------------------------------------------" + + "---------------\n\n\\begin{document}\n\n\\sloppy\n\n%-----------------------------" + + "--------------------------------------\n\n\\section*{HomePage}\n\nFirst revision of " + + "the HomePage end\n\n\\end{document}", r.body + end + + def test_update_web @wiki.system[:password] = 'pswd'