aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
authorJeremy Daer <jeremydaer@gmail.com>2017-07-08 16:55:50 -0700
committerJeremy Daer <jeremydaer@gmail.com>2017-07-08 17:27:31 -0700
commite5503399c0bb992ec1fd47b4bc371b8aef679e37 (patch)
tree345c3428df076adee7b9478ad4ae105959b4e47e /test/test_helper.rb
parent6116313da4996ef99dcb45e2b9ac90ef073caabc (diff)
downloadrails-e5503399c0bb992ec1fd47b4bc371b8aef679e37.tar.gz
rails-e5503399c0bb992ec1fd47b4bc371b8aef679e37.tar.bz2
rails-e5503399c0bb992ec1fd47b4bc371b8aef679e37.zip
Configure services that reference other services
* Move service configuration from the Engine to Service * Delegate configuration mechanics to internal Service::Configurator * Delegate service building to the concrete Service classes, allowing them to configure composed services. * Implement for the Mirror service.
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index dcabe33c18..b374a777dd 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -7,7 +7,7 @@ require "byebug"
require "active_storage"
require "active_storage/service"
-ActiveStorage::Blob.service = ActiveStorage::Service.configure(:Disk, root: File.join(Dir.tmpdir, "active_storage"))
+ActiveStorage::Blob.service = ActiveStorage::Service.configure(:test, test: { service: 'Disk', root: File.join(Dir.tmpdir, "active_storage") })
require "active_storage/verified_key_with_expiration"
ActiveStorage::VerifiedKeyWithExpiration.verifier = ActiveSupport::MessageVerifier.new("Testing")