Show repository images inline when clicking 'View' (#10362).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9776 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -185,6 +185,13 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase
|
||||
end
|
||||
end
|
||||
|
||||
def test_entry_should_send_images_inline
|
||||
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']
|
||||
end
|
||||
|
||||
def test_entry_at_given_revision
|
||||
assert_equal 0, @repository.changesets.count
|
||||
@repository.fetch_changesets
|
||||
|
||||
Reference in New Issue
Block a user