Made pdf action callable, and wrote a naive test for it
This commit is contained in:
parent
10214ebb26
commit
778e9420b5
2 changed files with 14 additions and 3 deletions
|
@ -4,6 +4,10 @@ require File.dirname(__FILE__) + '/../test_helper'
|
|||
require 'wiki_controller'
|
||||
require 'rexml/document'
|
||||
|
||||
unless RedClothForTex.available?
|
||||
$stderr.puts 'Warning: latex is not available, skipping all related tests'
|
||||
end
|
||||
|
||||
# Raise errors beyond the default web-based presentation
|
||||
class WikiController; def rescue_action(e) logger.error(e); raise e end; end
|
||||
|
||||
|
@ -257,6 +261,13 @@ class WikiControllerTest < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
|
||||
def test_pdf
|
||||
if RedClothForTex.available?
|
||||
process('pdf', 'web' => 'wiki1', 'id' => 'HomePage')
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
def test_print
|
||||
process('print', 'web' => 'wiki1', 'id' => 'HomePage')
|
||||
assert_success
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue