end
def test_diff_latin_1_path
- [21, 'adf805632193'].each do |r1|
- get :diff, :id => PRJ_ID, :rev => r1
- assert_response :success
- assert_template 'diff'
- assert_tag :tag => 'th',
- :content => '2',
- :sibling => {:tag => 'td',
- :attributes => { :class => /diff_in/ },
- :content => /It is written in Python/ }
+ with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do
+ [21, 'adf805632193'].each do |r1|
+ get :diff, :id => PRJ_ID, :rev => r1
+ assert_response :success
+ assert_template 'diff'
+ assert_tag :tag => 'thead',
+ :descendant => {
+ :tag => 'th',
+ :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