##// END OF EJS Templates
attachment: update functional tests to switch "side by side" and "inline" for patches (#9612)...
Toshi MARUYAMA -
r7741:00f9581380ea
parent child
Show More
@@ -37,11 +37,12 class AttachmentsControllerTest < ActionController::TestCase
37 37 end
38 38
39 39 def test_show_diff
40 get :show, :id => 14 # 060719210727_changeset_utf8.diff
40 ['inline', 'sbs'].each do |dt|
41 # 060719210727_changeset_utf8.diff
42 get :show, :id => 14, :type => dt
41 43 assert_response :success
42 44 assert_template 'diff'
43 45 assert_equal 'text/html', @response.content_type
44
45 46 assert_tag 'th',
46 47 :attributes => {:class => /filename/},
47 48 :content => /issues_controller.rb\t\(révision 1484\)/
@@ -49,13 +50,15 class AttachmentsControllerTest < ActionController::TestCase
49 50 :attributes => {:class => /line-code/},
50 51 :content => /Demande créée avec succès/
51 52 end
53 end
52 54
53 55 def test_show_diff_should_strip_non_utf8_content
54 get :show, :id => 5 # 060719210727_changeset_iso8859-1.diff
56 ['inline', 'sbs'].each do |dt|
57 # 060719210727_changeset_iso8859-1.diff
58 get :show, :id => 5, :type => dt
55 59 assert_response :success
56 60 assert_template 'diff'
57 61 assert_equal 'text/html', @response.content_type
58
59 62 assert_tag 'th',
60 63 :attributes => {:class => /filename/},
61 64 :content => /issues_controller.rb\t\(rvision 1484\)/
@@ -63,6 +66,7 class AttachmentsControllerTest < ActionController::TestCase
63 66 :attributes => {:class => /line-code/},
64 67 :content => /Demande cre avec succs/
65 68 end
69 end
66 70
67 71 def test_show_text_file
68 72 get :show, :id => 4
General Comments 0
You need to be logged in to leave comments. Login now