diff options
author | George Claghorn <george.claghorn@gmail.com> | 2017-08-20 18:09:44 -0400 |
---|---|---|
committer | George Claghorn <george.claghorn@gmail.com> | 2017-08-20 18:09:44 -0400 |
commit | 376dd5c0011214309d984c9a1e98958e2bc46c48 (patch) | |
tree | b997a3eadb8760d1fbd35efa4c2308adef08185c /activestorage/test/controllers | |
parent | 8bd14971b908b7d3c7b41a715d2904df88ee7b3c (diff) | |
download | rails-376dd5c0011214309d984c9a1e98958e2bc46c48.tar.gz rails-376dd5c0011214309d984c9a1e98958e2bc46c48.tar.bz2 rails-376dd5c0011214309d984c9a1e98958e2bc46c48.zip |
DRY
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 53a086f214..eacb9bfc11 100644 --- a/activestorage/test/controllers/disk_controller_test.rb +++ b/activestorage/test/controllers/disk_controller_test.rb @@ -8,7 +8,7 @@ class ActiveStorage::DiskControllerTest < ActionDispatch::IntegrationTest blob = create_blob get blob.service_url - assert_equal "inline; filename=\"#{blob.filename.base}\"", @response.headers["Content-Disposition"] + assert_equal "inline; filename=\"hello.txt\"", @response.headers["Content-Disposition"] assert_equal "text/plain", @response.headers["Content-Type"] end @@ -16,7 +16,7 @@ class ActiveStorage::DiskControllerTest < ActionDispatch::IntegrationTest blob = create_blob get blob.service_url(disposition: :attachment) - assert_equal "attachment; filename=\"#{blob.filename.base}\"", @response.headers["Content-Disposition"] + assert_equal "attachment; filename=\"hello.txt\"", @response.headers["Content-Disposition"] assert_equal "text/plain", @response.headers["Content-Type"] end |