diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2017-07-03 21:06:09 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2017-07-03 21:06:09 +0200 |
commit | 4aac5e3fa207b8b047db5d3c96a97dca2a695214 (patch) | |
tree | 132280f39d44710b0d7602d7964710fc5cea34cd /test/test_helper.rb | |
parent | dde68d4a8b6db22054cb218871b320eddbb3c546 (diff) | |
download | rails-4aac5e3fa207b8b047db5d3c96a97dca2a695214.tar.gz rails-4aac5e3fa207b8b047db5d3c96a97dca2a695214.tar.bz2 rails-4aac5e3fa207b8b047db5d3c96a97dca2a695214.zip |
Download disk blobs with verified URLs
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index 0964774e00..5be2631ceb 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -4,3 +4,9 @@ require "active_support/testing/autorun" require "byebug" require "active_file" + +require "active_file/site" +ActiveFile::Blob.site = ActiveFile::Sites::DiskSite.new(root: File.join(Dir.tmpdir, "active_file")) + +require "active_file/verified_key_with_expiration" +ActiveFile::VerifiedKeyWithExpiration.verifier = ActiveSupport::MessageVerifier.new("Testing") |