mirror of
https://github.com/redmine/redmine.git
synced 2025-11-12 00:06:01 +01:00
Decode hexadecimal-encoded literals in order to be frozen string literals friendly (#31004).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@17991 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -143,8 +143,6 @@ class AttachmentsControllerTest < Redmine::ControllerTest
|
||||
assert a.save
|
||||
assert_equal 'japanese-utf-8.txt', a.filename
|
||||
|
||||
str_japanese = "\xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e".force_encoding('UTF-8')
|
||||
|
||||
get :show, :params => {
|
||||
:id => a.id
|
||||
}
|
||||
@@ -152,7 +150,7 @@ class AttachmentsControllerTest < Redmine::ControllerTest
|
||||
assert_equal 'text/html', @response.content_type
|
||||
assert_select 'tr#L1' do
|
||||
assert_select 'th.line-num', :text => '1'
|
||||
assert_select 'td', :text => /#{str_japanese}/
|
||||
assert_select 'td', :text => /日本語/
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user