aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2018-11-28 10:35:57 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2018-11-28 10:35:57 +0900
commitb7ec129de5120f8ea3b2b3562a8c38c69e508a07 (patch)
treebbaa1b4e28aedaf7b7b10294e78d51c25e9d07e7 /activestorage
parentc2ef8bbf522dc69b3f3c270976bbb9779280e605 (diff)
downloadrails-b7ec129de5120f8ea3b2b3562a8c38c69e508a07.tar.gz
rails-b7ec129de5120f8ea3b2b3562a8c38c69e508a07.tar.bz2
rails-b7ec129de5120f8ea3b2b3562a8c38c69e508a07.zip
text is treated as `attachment`
Diffstat (limited to 'activestorage')
-rw-r--r--activestorage/test/controllers/disk_controller_test.rb4
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