]> source.dussan.org Git - redmine.git/commitdiff
Fix test failures (#22058).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 12 Apr 2016 16:53:01 +0000 (16:53 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 12 Apr 2016 16:53:01 +0000 (16:53 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@15328 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/repositories_mercurial_controller_test.rb
test/functional/repositories_subversion_controller_test.rb

index 24fe59acfcadc80b3baac1759cd5765a43d52763..7078db471329ad94eb37b80f731c6519feaa91b4 100644 (file)
@@ -265,10 +265,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
     end
 
     def test_entry_binary_force_download
-      get :entry, :id => PRJ_ID, :rev => 1,
-          :path => repository_path_hash(['images', 'edit.png'])[:param]
-      assert_response :success
-      assert_equal 'image/png', @response.content_type
+      # TODO: add a binary file which is not an image to the test repo
     end
 
     def test_directory_entry
index d801040f0afc8e67659d5df0fc4ef1b453f0ccdf..41ea3ed37b4aaf0da3bec6ff022f6d637c1cd1ac 100644 (file)
@@ -183,11 +183,11 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase
       end
     end
 
-    def test_entry_should_send_images_inline
+    def test_entry_should_display_images
       get :entry, :id => PRJ_ID,
           :path => repository_path_hash(['subversion_test', 'folder', 'subfolder', 'rubylogo.gif'])[:param]
       assert_response :success
-      assert_equal 'inline; filename="rubylogo.gif"', response.headers['Content-Disposition']
+      assert_template 'entry'
     end
 
     def test_entry_at_given_revision