filename: archive.zip
author_id: 1
content_type: application/zip
-attachments_023:
+attachments_022:
created_on: 2019-04-30 09:23:44 +09:00
container_type: Project
container_id: 1
disk_filename: 190430092344_redmine_logo.ai.unknown
disk_directory: "2019/04"
digest: 68d90c016f0806d88234a6f16530fdf0b7f1d2481354798f1a5fd165dca6b04f
- id: 23
+ id: 22
filesize: 4994
filename: redmine_logo.ai.unknown
author_id: 1
def test_download_should_assign_application_octet_stream_if_content_type_is_not_determined
get :download, :params => {
- :id => 23
+ :id => 22
}
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
set_tmp_attachments_directory
end