aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2017-07-05 15:18:50 +0200
committerDavid Heinemeier Hansson <david@loudthinking.com>2017-07-05 15:18:50 +0200
commitaaf841518866b34d769d9a951a389d1eef70d6e7 (patch)
tree81456d39a3654247196ce4cbd6bab8ab356aa0f6 /test/test_helper.rb
parent97aa328bb1e9d43bba1bcae2c8ddbaed397770c0 (diff)
downloadrails-aaf841518866b34d769d9a951a389d1eef70d6e7.tar.gz
rails-aaf841518866b34d769d9a951a389d1eef70d6e7.tar.bz2
rails-aaf841518866b34d769d9a951a389d1eef70d6e7.zip
Add attachments
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 96ef58b73f..29bd31e62f 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -17,4 +17,12 @@ class ActiveSupport::TestCase
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
end
-end \ No newline at end of file
+end
+
+
+require "active_vault/attachments"
+ActiveRecord::Base.send :extend, ActiveVault::Attachments
+
+require "global_id"
+GlobalID.app = "ActiveVaultExampleApp"
+ActiveRecord::Base.send :include, GlobalID::Identification