scm: mercurial: add test of diff non ASCII path name in functional test.
TODO: this test fails in Ruby 1.9 and Encoding.default_external is not UTF-8. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5689 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
c5257f6e0d
commit
ff6a86364e
@ -277,15 +277,26 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_diff_latin_1_path
|
def test_diff_latin_1_path
|
||||||
[21, 'adf805632193'].each do |r1|
|
with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do
|
||||||
get :diff, :id => PRJ_ID, :rev => r1
|
[21, 'adf805632193'].each do |r1|
|
||||||
assert_response :success
|
get :diff, :id => PRJ_ID, :rev => r1
|
||||||
assert_template 'diff'
|
assert_response :success
|
||||||
assert_tag :tag => 'th',
|
assert_template 'diff'
|
||||||
:content => '2',
|
assert_tag :tag => 'thead',
|
||||||
:sibling => {:tag => 'td',
|
:descendant => {
|
||||||
:attributes => { :class => /diff_in/ },
|
:tag => 'th',
|
||||||
:content => /It is written in Python/ }
|
:attributes => { :class => 'filename' } ,
|
||||||
|
:content => /latin-1-dir\/test-#{@char_1}-2.txt/ ,
|
||||||
|
},
|
||||||
|
:sibling => {
|
||||||
|
:tag => 'tbody',
|
||||||
|
:descendant => {
|
||||||
|
:tag => 'td',
|
||||||
|
:attributes => { :class => /diff_in/ },
|
||||||
|
:content => /It is written in Python/
|
||||||
|
}
|
||||||
|
}
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user