##// END OF EJS Templates
attachment: update a functional test to switch "side by side" and "inline" for ISO-8859-1 patches (#2371, #9612)...
Toshi MARUYAMA -
r7753:617cb8d270ac
parent child
Show More
@@ -72,12 +72,12 class AttachmentsControllerTest < ActionController::TestCase
72
72
73 def test_show_diff_latin_1
73 def test_show_diff_latin_1
74 with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do
74 with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do
75 ['inline', 'sbs'].each do |dt|
75 # 060719210727_changeset_iso8859-1.diff
76 # 060719210727_changeset_iso8859-1.diff
76 get :show, :id => 5
77 get :show, :id => 5
77 assert_response :success
78 assert_response :success
78 assert_template 'diff'
79 assert_template 'diff'
79 assert_equal 'text/html', @response.content_type
80 assert_equal 'text/html', @response.content_type
80
81 assert_tag 'th',
81 assert_tag 'th',
82 :attributes => {:class => "filename"},
82 :attributes => {:class => "filename"},
83 :content => /issues_controller.rb\t\(révision 1484\)/
83 :content => /issues_controller.rb\t\(révision 1484\)/
@@ -86,6 +86,7 class AttachmentsControllerTest < ActionController::TestCase
86 :content => /Demande créée avec succès/
86 :content => /Demande créée avec succès/
87 end
87 end
88 end
88 end
89 end
89
90
90 def test_show_text_file
91 def test_show_text_file
91 get :show, :id => 4
92 get :show, :id => 4
General Comments 0
You need to be logged in to leave comments. Login now