##// END OF EJS Templates
scm: filesystem: add test for no extension file mime type in functional test....
Toshi MARUYAMA -
r5089:cb297048df58
parent child
Show More
@@ -65,6 +65,12 class RepositoriesFilesystemControllerTest < ActionController::TestCase
65 :sibling => { :tag => 'td', :content => /TEST CAT/ }
65 :sibling => { :tag => 'td', :content => /TEST CAT/ }
66 end
66 end
67
67
68 def test_entry_download_no_extension
69 get :entry, :id => PRJ_ID, :path => ['test'], :format => 'raw'
70 assert_response :success
71 assert_equal 'application/octet-stream', @response.content_type
72 end
73
68 def test_show_non_ascii_contents
74 def test_show_non_ascii_contents
69 with_settings :repositories_encodings => 'UTF-8,EUC-JP' do
75 with_settings :repositories_encodings => 'UTF-8,EUC-JP' do
70 get :entry, :id => PRJ_ID, :path => ['japanese', 'euc-jp.txt']
76 get :entry, :id => PRJ_ID, :path => ['japanese', 'euc-jp.txt']
General Comments 0
You need to be logged in to leave comments. Login now