diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2017-07-09 14:40:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-09 14:40:19 +0200 |
commit | 41afdb62f12e2464bfbda4abccad17e6db053687 (patch) | |
tree | 5eb110adff0dfb0446042825cb6580a6a92af923 /test/test_helper.rb | |
parent | f1489c22202858fe003968e93cc4dc435859483e (diff) | |
parent | 4d292fc0e75e35e177806b1ea821455fc0bc021c (diff) | |
download | rails-41afdb62f12e2464bfbda4abccad17e6db053687.tar.gz rails-41afdb62f12e2464bfbda4abccad17e6db053687.tar.bz2 rails-41afdb62f12e2464bfbda4abccad17e6db053687.zip |
Merge pull request #26 from jeremy/service-configurator
Clarify how a service can build other composed services
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 5 |
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") |