aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2017-07-23 11:05:20 -0500
committerDavid Heinemeier Hansson <david@loudthinking.com>2017-07-23 11:05:20 -0500
commit46da4ee7daf1ecaa2fc47a260ccb58e119a1b5ea (patch)
treebc19d2f900055e39de21f62ec27e9079723cfa5f /test/test_helper.rb
parent8f20624820ed0922b33fceb4013d3ff11015b366 (diff)
downloadrails-46da4ee7daf1ecaa2fc47a260ccb58e119a1b5ea.tar.gz
rails-46da4ee7daf1ecaa2fc47a260ccb58e119a1b5ea.tar.bz2
rails-46da4ee7daf1ecaa2fc47a260ccb58e119a1b5ea.zip
Switch to simpler signed_id for blob rather than full GlobalID
We don't need to lookup multiple different classes, so no need to use a globalid.
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 1d9737c4a4..650e997205 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -28,11 +28,6 @@ require "tmpdir"
ActiveStorage::Blob.service = ActiveStorage::Service::DiskService.new(root: Dir.mktmpdir("active_storage_tests"))
ActiveStorage::Service.logger = ActiveSupport::Logger.new(STDOUT)
-require "active_storage/verified_key_with_expiration"
-ActiveStorage::VerifiedKeyWithExpiration.verifier = ActiveSupport::MessageVerifier.new("Testing")
-
-require "active_storage/variation"
-ActiveStorage::Variation.verifier = ActiveSupport::MessageVerifier.new("Testing")
ActiveStorage.verifier = ActiveSupport::MessageVerifier.new("Testing")
class ActiveSupport::TestCase
@@ -71,4 +66,3 @@ ActiveRecord::Base.send :extend, ActiveStorage::Attached::Macros
require "global_id"
GlobalID.app = "ActiveStorageExampleApp"
ActiveRecord::Base.send :include, GlobalID::Identification
-SignedGlobalID.verifier = ActiveStorage::VerifiedKeyWithExpiration.verifier