镜像自地址
https://github.com/redmine/redmine.git
已同步 2024-08-27 05:58:46 +02:00
replace hard-coded non ASCII literal to UTF-8 hexadecimal at test/unit/wiki_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9239 e93f8b46-1217-0410-a6f0-8f06a7374b81
这个提交包含在:
父节点
ae5edac243
当前提交
224331dacb
@ -78,8 +78,10 @@ class WikiTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
def test_titleize
|
||||
ja_test = "\xe3\x83\x86\xe3\x82\xb9\xe3\x83\x88"
|
||||
ja_test.force_encoding('UTF-8') if ja_test.respond_to?(:force_encoding)
|
||||
assert_equal 'Page_title_with_CAPITALES', Wiki.titleize('page title with CAPITALES')
|
||||
assert_equal 'テスト', Wiki.titleize('テスト')
|
||||
assert_equal ja_test, Wiki.titleize(ja_test)
|
||||
end
|
||||
|
||||
context "#sidebar" do
|
||||
|
正在加载...
在新工单中引用
屏蔽一个用户