diff --git a/docs/testing.md b/docs/testing.md index 48eb3197c..a21e786f7 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -126,3 +126,12 @@ class HomesTest < ApplicationSystemTestCase end end ``` + +## Capybara setup for Rails +Make sure you configure Rails to serve static files from the public directory in the test environment. + +```rb +# config/environments/test.rb +# Configure public file server for tests with Cache-Control for performance. +config.public_file_server.enabled = true +```