mirror of
https://github.com/redmine/redmine.git
synced 2026-07-10 18:11:59 +02:00
Move VersionsController#download to AttachmentsController.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1685 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
13
test/fixtures/attachments.yml
vendored
13
test/fixtures/attachments.yml
vendored
@@ -73,3 +73,16 @@ attachments_006:
|
||||
filename: archive.zip
|
||||
author_id: 2
|
||||
content_type: application/octet-stream
|
||||
attachments_007:
|
||||
created_on: 2006-07-19 21:07:27 +02:00
|
||||
container_type: Issue
|
||||
container_id: 4
|
||||
downloads: 0
|
||||
disk_filename: 060719210727_archive.zip
|
||||
digest: b91e08d0cf966d5c6ff411bd8c4cc3a2
|
||||
id: 7
|
||||
filesize: 157
|
||||
filename: archive.zip
|
||||
author_id: 1
|
||||
content_type: application/octet-stream
|
||||
|
||||
@@ -56,4 +56,9 @@ class AttachmentsControllerTest < Test::Unit::TestCase
|
||||
assert_response :success
|
||||
assert_equal 'application/x-ruby', @response.content_type
|
||||
end
|
||||
|
||||
def test_anonymous_on_private_private
|
||||
get :download, :id => 7
|
||||
assert_redirected_to 'account/login'
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user