Routes
Make remove_orphaned_pages work in a proxied situation. Also, "fix" a busted functional test. I'm not happy with this one. We're enforcing plain-text titles (which, I think, is the correct thing to do), but sending them as type="html", which then requires double-encoding.
This commit is contained in:
parent
1d5faf4a84
commit
cd5c19e530
2 changed files with 4 additions and 2 deletions
|
@ -525,13 +525,15 @@ class WikiControllerTest < Test::Unit::TestCase
|
|||
|
||||
def test_atom_title_with_ampersand
|
||||
# was ticket:143
|
||||
# Since we're declaring <title> to be of type="html", the content is unescaped once before interpreting.
|
||||
# Evidently, the desired behaviour is that the final result be HTML-encoded. Hence the double-encoding here.
|
||||
@wiki.write_page('wiki1', 'Title&With&Ampersands',
|
||||
'About spaces', 1.hour.ago, Author.new('NitPicker', '127.0.0.3'), test_renderer)
|
||||
|
||||
r = process 'atom_with_headlines', 'web' => 'wiki1'
|
||||
|
||||
assert r.body.include?('<title type="html">Home Page</title>')
|
||||
assert r.body.include?('<title type="html">Title&With&Ampersands</title>')
|
||||
assert r.body.include?('<title type="html">Title&amp;With&amp;Ampersands</title>')
|
||||
end
|
||||
|
||||
def test_atom_timestamp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue