From f15b12556f01be2eca445f13bed33ce463146ed6 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 22 Mar 2011 16:56:52 +0000 Subject: scm: set mime type in downloading file. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5210 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/repositories_filesystem_controller_test.rb | 3 +-- test/functional/repositories_mercurial_controller_test.rb | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'test/functional') diff --git a/test/functional/repositories_filesystem_controller_test.rb b/test/functional/repositories_filesystem_controller_test.rb index aa090d3ab..5df886567 100644 --- a/test/functional/repositories_filesystem_controller_test.rb +++ b/test/functional/repositories_filesystem_controller_test.rb @@ -98,8 +98,7 @@ class RepositoriesFilesystemControllerTest < ActionController::TestCase with_settings :file_max_size_displayed => 1 do get :entry, :id => PRJ_ID, :path => ['japanese', 'big-file.txt'] assert_response :success - # TODO: 'text/plain' - assert_equal 'application/octet-stream', @response.content_type + assert_equal 'text/plain', @response.content_type end end else diff --git a/test/functional/repositories_mercurial_controller_test.rb b/test/functional/repositories_mercurial_controller_test.rb index 8247bcb00..0c638df12 100644 --- a/test/functional/repositories_mercurial_controller_test.rb +++ b/test/functional/repositories_mercurial_controller_test.rb @@ -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 -- cgit v1.2.3