Don't Expand NCRs
That operation is not idempotent (among other defects). Instead, just check that the NCRs corespond to valid utf-8. (Reported by Andrew Stacey)
This commit is contained in:
parent
d51b04d3db
commit
3ff68ef42f
2 changed files with 11 additions and 5 deletions
|
@ -771,6 +771,12 @@ class WikiControllerTest < ActionController::TestCase
|
|||
new_page = @wiki.read_page('wiki1', 'AnotherPage')
|
||||
assert_equal 'AnonymousCoward', new_page.author
|
||||
|
||||
r = process 'save', 'web' => 'wiki1', 'id' => 'AnotherPage', 'content' => 'Revised contents of a new page',
|
||||
'author' => "Geo�rge & June"
|
||||
|
||||
assert_redirected_to :action => 'show', :controller => 'wiki', :web => 'wiki1', :id => 'AnotherPage'
|
||||
new_page = @wiki.read_page('wiki1', 'AnotherPage')
|
||||
assert_equal 'George & June', new_page.author
|
||||
end
|
||||
|
||||
def test_search
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue