@@ -72,18 +72,19 class AttachmentsControllerTest < ActionController::TestCase | |||
|
72 | 72 | |
|
73 | 73 | def test_show_diff_latin_1 |
|
74 | 74 | with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do |
|
75 | # 060719210727_changeset_iso8859-1.diff | |
|
76 | get :show, :id => 5 | |
|
77 | assert_response :success | |
|
78 | assert_template 'diff' | |
|
79 | assert_equal 'text/html', @response.content_type | |
|
80 | ||
|
81 | assert_tag 'th', | |
|
82 | :attributes => {:class => "filename"}, | |
|
83 | :content => /issues_controller.rb\t\(révision 1484\)/ | |
|
84 | assert_tag 'td', | |
|
85 | :attributes => {:class => /line-code/}, | |
|
86 | :content => /Demande créée avec succès/ | |
|
75 | ['inline', 'sbs'].each do |dt| | |
|
76 | # 060719210727_changeset_iso8859-1.diff | |
|
77 | get :show, :id => 5 | |
|
78 | assert_response :success | |
|
79 | assert_template 'diff' | |
|
80 | assert_equal 'text/html', @response.content_type | |
|
81 | assert_tag 'th', | |
|
82 | :attributes => {:class => "filename"}, | |
|
83 | :content => /issues_controller.rb\t\(révision 1484\)/ | |
|
84 | assert_tag 'td', | |
|
85 | :attributes => {:class => /line-code/}, | |
|
86 | :content => /Demande créée avec succès/ | |
|
87 | end | |
|
87 | 88 | end |
|
88 | 89 | end |
|
89 | 90 |
General Comments 0
You need to be logged in to leave comments.
Login now