From c624df326a4ef36919a5195a3c5509fab97dcba3 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 6 Jul 2017 11:33:29 +0200 Subject: ActiveVault -> ActiveStorage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Yaroslav agreed to hand over the gem name ❤️ --- test/test_helper.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'test/test_helper.rb') diff --git a/test/test_helper.rb b/test/test_helper.rb index b18613c365..f354a995e4 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -4,25 +4,25 @@ require "active_support/test_case" require "active_support/testing/autorun" require "byebug" -require "active_vault" +require "active_storage" -require "active_vault/site" -ActiveVault::Blob.site = ActiveVault::Site.configure(:Disk, root: File.join(Dir.tmpdir, "active_vault")) +require "active_storage/site" +ActiveStorage::Blob.site = ActiveStorage::Site.configure(:Disk, root: File.join(Dir.tmpdir, "active_storage")) -require "active_vault/verified_key_with_expiration" -ActiveVault::VerifiedKeyWithExpiration.verifier = ActiveSupport::MessageVerifier.new("Testing") +require "active_storage/verified_key_with_expiration" +ActiveStorage::VerifiedKeyWithExpiration.verifier = ActiveSupport::MessageVerifier.new("Testing") class ActiveSupport::TestCase private def create_blob(data: "Hello world!", filename: "hello.txt", content_type: "text/plain") - ActiveVault::Blob.create_after_upload! io: StringIO.new(data), filename: filename, content_type: content_type + ActiveStorage::Blob.create_after_upload! io: StringIO.new(data), filename: filename, content_type: content_type end end -require "active_vault/attached" -ActiveRecord::Base.send :extend, ActiveVault::Attached::Macros +require "active_storage/attached" +ActiveRecord::Base.send :extend, ActiveStorage::Attached::Macros require "global_id" -GlobalID.app = "ActiveVaultExampleApp" +GlobalID.app = "ActiveStorageExampleApp" ActiveRecord::Base.send :include, GlobalID::Identification -- cgit v1.2.3