diff options
author | George Claghorn <george@basecamp.com> | 2017-07-27 17:07:52 -0400 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2017-07-27 17:07:52 -0400 |
commit | dc235c4d1366b4f3185d30a8a4e35ad12173fd89 (patch) | |
tree | ff06e0469374f130ce63d04e7d38befa08aa6ee7 /test/controllers | |
parent | 64bbcaf2446a116f1abed69b781522cebbb572da (diff) | |
download | rails-dc235c4d1366b4f3185d30a8a4e35ad12173fd89.tar.gz rails-dc235c4d1366b4f3185d30a8a4e35ad12173fd89.tar.bz2 rails-dc235c4d1366b4f3185d30a8a4e35ad12173fd89.zip |
Separate show and direct upload tests
Diffstat (limited to 'test/controllers')
-rw-r--r-- | test/controllers/disk_controller_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/controllers/disk_controller_test.rb b/test/controllers/disk_controller_test.rb index f498d5e22e..df7954d6b4 100644 --- a/test/controllers/disk_controller_test.rb +++ b/test/controllers/disk_controller_test.rb @@ -18,6 +18,7 @@ class ActiveStorage::DiskControllerTest < ActionDispatch::IntegrationTest assert_equal "text/plain", @response.headers["Content-Type"] end + test "directly uploading blob with integrity" do data = "Something else entirely!" blob = create_blob_before_direct_upload byte_size: data.size, checksum: Digest::MD5.base64digest(data) |