Revert Revision 520; This is more thorough
This ensures that @page.name has the right (utf8) encoding.
This commit is contained in:
parent
d786e95a77
commit
6cf1463525
4 changed files with 6 additions and 3 deletions
|
@ -683,7 +683,9 @@ class WikiControllerTest < ActionController::TestCase
|
|||
assert_match @eternity, r.headers["Set-Cookie"][0]
|
||||
new_page = @wiki.read_page('wiki1', 'NewPage')
|
||||
assert_equal "Double-struck A: \360\235\224\270", new_page.content
|
||||
assert_equal "\360\235\224\270\303\274thorOfNewPage", new_page.author
|
||||
a = ''.respond_to?(:force_encoding) ? "\u{1D538}\u00FCthorOfNewPage" :
|
||||
"\360\235\224\270\303\274thorOfNewPage"
|
||||
assert_equal a, new_page.author
|
||||
assert_equal "\360\235\224\270\303\274thorOfNewPage", r.cookies['author']
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue