aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index b374a777dd..e24c45f656 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -5,9 +5,8 @@ require "active_support/testing/autorun"
require "byebug"
require "active_storage"
-
-require "active_storage/service"
-ActiveStorage::Blob.service = ActiveStorage::Service.configure(:test, test: { service: 'Disk', root: File.join(Dir.tmpdir, "active_storage") })
+require "active_storage/service/disk_service"
+ActiveStorage::Blob.service = ActiveStorage::Service::DiskService.new(root: File.join(Dir.tmpdir, "active_storage"))
require "active_storage/verified_key_with_expiration"
ActiveStorage::VerifiedKeyWithExpiration.verifier = ActiveSupport::MessageVerifier.new("Testing")