]> source.dussan.org Git - redmine.git/commitdiff
scm: filesystem: add test for no extension file mime type in functional test.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 22 Mar 2011 16:56:07 +0000 (16:56 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 22 Mar 2011 16:56:07 +0000 (16:56 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5209 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/repositories_filesystem_controller_test.rb

index afc4cdd1ec59f4c1e3cdca5468c97f51fd1309c5..aa090d3aba0d39bd76b161337f60b07a660d621c 100644 (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']