mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Fix test failures (#22058).
git-svn-id: http://svn.redmine.org/redmine/trunk@15328 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
5d7edf3393
commit
dae1e6ab21
@ -265,10 +265,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_entry_binary_force_download
|
def test_entry_binary_force_download
|
||||||
get :entry, :id => PRJ_ID, :rev => 1,
|
# TODO: add a binary file which is not an image to the test repo
|
||||||
:path => repository_path_hash(['images', 'edit.png'])[:param]
|
|
||||||
assert_response :success
|
|
||||||
assert_equal 'image/png', @response.content_type
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_directory_entry
|
def test_directory_entry
|
||||||
|
|||||||
@ -183,11 +183,11 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_entry_should_send_images_inline
|
def test_entry_should_display_images
|
||||||
get :entry, :id => PRJ_ID,
|
get :entry, :id => PRJ_ID,
|
||||||
:path => repository_path_hash(['subversion_test', 'folder', 'subfolder', 'rubylogo.gif'])[:param]
|
:path => repository_path_hash(['subversion_test', 'folder', 'subfolder', 'rubylogo.gif'])[:param]
|
||||||
assert_response :success
|
assert_response :success
|
||||||
assert_equal 'inline; filename="rubylogo.gif"', response.headers['Content-Disposition']
|
assert_template 'entry'
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_entry_at_given_revision
|
def test_entry_at_given_revision
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user