aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2017-07-24 14:35:36 -0500
committerDavid Heinemeier Hansson <david@loudthinking.com>2017-07-24 14:35:36 -0500
commit3eb8c89c0410fac34aefc8b89b8c6b5901c39415 (patch)
treefeab05c7ed4a9ee67ada5803da2674c27f9172ea /test/test_helper.rb
parent20effee5671d76875c050e3d9e91ff60fa181a91 (diff)
downloadrails-3eb8c89c0410fac34aefc8b89b8c6b5901c39415.tar.gz
rails-3eb8c89c0410fac34aefc8b89b8c6b5901c39415.tar.bz2
rails-3eb8c89c0410fac34aefc8b89b8c6b5901c39415.zip
Fix blob associations
cc @javan
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 650e997205..d3a55e2cf0 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -23,6 +23,7 @@ rescue Errno::ENOENT
{}
end
+require "active_storage/blob"
require "active_storage/service/disk_service"
require "tmpdir"
ActiveStorage::Blob.service = ActiveStorage::Service::DiskService.new(root: Dir.mktmpdir("active_storage_tests"))