Tests for WikiService use default WikiService (with Madeleine persistence), not a WikiServiceWithNoPersistence.

This commit is contained in:
Alexey Verkhovsky 2005-01-16 23:17:30 +00:00
parent ab63f1449d
commit 621b79db55
4 changed files with 28 additions and 4 deletions

View file

@ -158,7 +158,8 @@ class WikiControllerTest < Test::Unit::TestCase
assert_success
assert_equal 'application/zip', r.headers['Content-Type']
assert_match /attachment; filename="wiki1-html-\d\d\d\d-\d\d-\d\d-\d\d-\d\d-\d\d.zip"/, r.headers['Content-Disposition']
assert_match /attachment; filename="wiki1-html-\d\d\d\d-\d\d-\d\d-\d\d-\d\d-\d\d.zip"/,
r.headers['Content-Disposition']
# TODO assert contents of the output file
end
@ -167,7 +168,8 @@ class WikiControllerTest < Test::Unit::TestCase
assert_success
assert_equal 'application/zip', r.headers['Content-Type']
assert_match /attachment; filename="wiki1-textile-\d\d\d\d-\d\d-\d\d-\d\d-\d\d-\d\d.zip"/, r.headers['Content-Disposition']
assert_match /attachment; filename="wiki1-textile-\d\d\d\d-\d\d-\d\d-\d\d-\d\d-\d\d.zip"/,
r.headers['Content-Disposition']
# TODO assert contents of the output file
end