##// END OF EJS Templates
attachment: add missing diff type at functional tests (#2371, #9612)...
Toshi MARUYAMA -
r7765:8a8162c74352
parent child
Show More
@@ -56,7 +56,7 class AttachmentsControllerTest < ActionController::TestCase
56 with_settings :repositories_encodings => 'UTF-8' do
56 with_settings :repositories_encodings => 'UTF-8' do
57 ['inline', 'sbs'].each do |dt|
57 ['inline', 'sbs'].each do |dt|
58 # 060719210727_changeset_iso8859-1.diff
58 # 060719210727_changeset_iso8859-1.diff
59 get :show, :id => 5
59 get :show, :id => 5, :type => dt
60 assert_response :success
60 assert_response :success
61 assert_template 'diff'
61 assert_template 'diff'
62 assert_equal 'text/html', @response.content_type
62 assert_equal 'text/html', @response.content_type
@@ -74,7 +74,7 class AttachmentsControllerTest < ActionController::TestCase
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 ['inline', 'sbs'].each do |dt|
76 # 060719210727_changeset_iso8859-1.diff
76 # 060719210727_changeset_iso8859-1.diff
77 get :show, :id => 5
77 get :show, :id => 5, :type => dt
78 assert_response :success
78 assert_response :success
79 assert_template 'diff'
79 assert_template 'diff'
80 assert_equal 'text/html', @response.content_type
80 assert_equal 'text/html', @response.content_type
General Comments 0
You need to be logged in to leave comments. Login now