scm: set mime type in downloading file.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5210 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA committed 2011-03-22 16:56:52 +00:00
1 parent cb297048df
commit f15b12556f
3 files changed
+6 -5

No files matched your search

@@ -222,8 +222,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
def test_entry_binary_force_download
get :entry, :id => PRJ_ID, :rev => 1, :path => ['images', 'edit.png']
assert_response :success
# TODO: 'image/png'
assert_equal 'application/octet-stream', @response.content_type
assert_equal 'image/png', @response.content_type
end
def test_directory_entry