aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_storage_overview.md
diff options
context:
space:
mode:
authorSean Collins <sean@cllns.com>2018-10-04 12:34:22 -0600
committerSean Collins <sean@cllns.com>2018-10-05 10:59:16 -0600
commitf25de2c818e119df620e45e31d7edec281cf7e96 (patch)
tree0b57648d4930cafb99a904126c2a3916a78d4df3 /guides/source/active_storage_overview.md
parent5c7c3fe0d7059ba62e14bf6ac4ddfbdcabd905a6 (diff)
downloadrails-f25de2c818e119df620e45e31d7edec281cf7e96.tar.gz
rails-f25de2c818e119df620e45e31d7edec281cf7e96.tar.bz2
rails-f25de2c818e119df620e45e31d7edec281cf7e96.zip
Add instruction for test environment
Diffstat (limited to 'guides/source/active_storage_overview.md')
-rw-r--r--guides/source/active_storage_overview.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/guides/source/active_storage_overview.md b/guides/source/active_storage_overview.md
index 71ba6184e0..d5387219f5 100644
--- a/guides/source/active_storage_overview.md
+++ b/guides/source/active_storage_overview.md
@@ -82,6 +82,14 @@ To use the Amazon S3 service in production, you add the following to
config.active_storage.service = :amazon
```
+To use the test service when testing, you add the following to
+`config/environments/test.rb`:
+
+```ruby
+# Store uploaded files on the local file system in a temporary directory.
+config.active_storage.service = :test
+```
+
Continue reading for more information on the built-in service adapters (e.g.
`Disk` and `S3`) and the configuration they require.