Tests for WikiService use default WikiService (with Madeleine persistence), not a WikiServiceWithNoPersistence.
This commit is contained in:
parent
ab63f1449d
commit
621b79db55
4 changed files with 28 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue