mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Correct the fixture id (#31275).
git-svn-id: http://svn.redmine.org/redmine/trunk@18099 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
6732ce9a93
commit
3bccfe8227
4
test/fixtures/attachments.yml
vendored
4
test/fixtures/attachments.yml
vendored
@ -281,7 +281,7 @@ attachments_021:
|
|||||||
filename: archive.zip
|
filename: archive.zip
|
||||||
author_id: 1
|
author_id: 1
|
||||||
content_type: application/zip
|
content_type: application/zip
|
||||||
attachments_023:
|
attachments_022:
|
||||||
created_on: 2019-04-30 09:23:44 +09:00
|
created_on: 2019-04-30 09:23:44 +09:00
|
||||||
container_type: Project
|
container_type: Project
|
||||||
container_id: 1
|
container_id: 1
|
||||||
@ -289,7 +289,7 @@ attachments_023:
|
|||||||
disk_filename: 190430092344_redmine_logo.ai.unknown
|
disk_filename: 190430092344_redmine_logo.ai.unknown
|
||||||
disk_directory: "2019/04"
|
disk_directory: "2019/04"
|
||||||
digest: 68d90c016f0806d88234a6f16530fdf0b7f1d2481354798f1a5fd165dca6b04f
|
digest: 68d90c016f0806d88234a6f16530fdf0b7f1d2481354798f1a5fd165dca6b04f
|
||||||
id: 23
|
id: 22
|
||||||
filesize: 4994
|
filesize: 4994
|
||||||
filename: redmine_logo.ai.unknown
|
filename: redmine_logo.ai.unknown
|
||||||
author_id: 1
|
author_id: 1
|
||||||
|
|||||||
@ -360,10 +360,10 @@ class AttachmentsControllerTest < Redmine::ControllerTest
|
|||||||
|
|
||||||
def test_download_should_assign_application_octet_stream_if_content_type_is_not_determined
|
def test_download_should_assign_application_octet_stream_if_content_type_is_not_determined
|
||||||
get :download, :params => {
|
get :download, :params => {
|
||||||
:id => 23
|
:id => 22
|
||||||
}
|
}
|
||||||
assert_response :success
|
assert_response :success
|
||||||
assert_nil Redmine::MimeType.of(attachments(:attachments_023).filename)
|
assert_nil Redmine::MimeType.of(attachments(:attachments_022).filename)
|
||||||
assert_equal 'application/octet-stream', @response.content_type
|
assert_equal 'application/octet-stream', @response.content_type
|
||||||
set_tmp_attachments_directory
|
set_tmp_attachments_directory
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user