scm: filesystem: add test for no extension file mime type in functional test.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5209 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-03-22 16:56:07 +00:00
parent 7ba5b27d09
commit cb297048df
1 changed files with 6 additions and 0 deletions

View File

@ -65,6 +65,12 @@ class RepositoriesFilesystemControllerTest < ActionController::TestCase
:sibling => { :tag => 'td', :content => /TEST CAT/ }
end
def test_entry_download_no_extension
get :entry, :id => PRJ_ID, :path => ['test'], :format => 'raw'
assert_response :success
assert_equal 'application/octet-stream', @response.content_type
end
def test_show_non_ascii_contents
with_settings :repositories_encodings => 'UTF-8,EUC-JP' do
get :entry, :id => PRJ_ID, :path => ['japanese', 'euc-jp.txt']