diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-11-28 10:35:57 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-11-28 10:35:57 +0900 |
commit | b7ec129de5120f8ea3b2b3562a8c38c69e508a07 (patch) | |
tree | bbaa1b4e28aedaf7b7b10294e78d51c25e9d07e7 /activestorage/test/controllers | |
parent | c2ef8bbf522dc69b3f3c270976bbb9779280e605 (diff) | |
download | rails-b7ec129de5120f8ea3b2b3562a8c38c69e508a07.tar.gz rails-b7ec129de5120f8ea3b2b3562a8c38c69e508a07.tar.bz2 rails-b7ec129de5120f8ea3b2b3562a8c38c69e508a07.zip |
text is treated as `attachment`
Diffstat (limited to 'activestorage/test/controllers')
-rw-r--r-- | activestorage/test/controllers/disk_controller_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activestorage/test/controllers/disk_controller_test.rb b/activestorage/test/controllers/disk_controller_test.rb index 0aa8648db3..a723b4d56a 100644 --- a/activestorage/test/controllers/disk_controller_test.rb +++ b/activestorage/test/controllers/disk_controller_test.rb @@ -23,11 +23,11 @@ class ActiveStorage::DiskControllerTest < ActionDispatch::IntegrationTest assert_equal "Hello world!", response.body end - test "showing blob range inline" do + test "showing blob range" do blob = create_blob get blob.service_url, headers: { "Range" => "bytes=5-9" } assert_response :partial_content - assert_equal "inline; filename=\"hello.txt\"; filename*=UTF-8''hello.txt", response.headers["Content-Disposition"] + assert_equal "attachment; filename=\"hello.txt\"; filename*=UTF-8''hello.txt", response.headers["Content-Disposition"] assert_equal "text/plain", response.headers["Content-Type"] assert_equal " worl", response.body end |