author links on print page are smart about whether they are being exported or just displayed in the browser
This commit is contained in:
parent
c99d675780
commit
5ea3f93bf9
3 changed files with 11 additions and 3 deletions
|
@ -102,6 +102,7 @@ class WikiControllerTest < Test::Unit::TestCase
|
|||
r.headers['Content-Disposition']
|
||||
content = r.binary_content
|
||||
assert_equal 'PK', content[0..1], 'Content is not a zip file'
|
||||
assert_equal :export, r.template_objects['link_mode']
|
||||
end
|
||||
|
||||
def test_export_markup
|
||||
|
@ -233,8 +234,10 @@ class WikiControllerTest < Test::Unit::TestCase
|
|||
|
||||
|
||||
def test_print
|
||||
process('print', 'web' => 'wiki1', 'id' => 'HomePage')
|
||||
r = process('print', 'web' => 'wiki1', 'id' => 'HomePage')
|
||||
|
||||
assert_success
|
||||
assert_equal :show, r.template_objects['link_mode']
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue