##// END OF EJS Templates
attachment: add a functional test to show an ISO-8859-1 patch (#2371)...
Toshi MARUYAMA -
r7747:c6191cdc82cd
parent child
Show More
@@ -70,6 +70,23 class AttachmentsControllerTest < ActionController::TestCase
70 end
70 end
71 end
71 end
72
72
73 def test_show_diff_latin_1
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/
87 end
88 end
89
73 def test_show_text_file
90 def test_show_text_file
74 get :show, :id => 4
91 get :show, :id => 4
75 assert_response :success
92 assert_response :success
General Comments 0
You need to be logged in to leave comments. Login now