Skip to content

Commit

Permalink
Add capybara configuration to testing.rb (rails#1340)
Browse files Browse the repository at this point in the history
  • Loading branch information
smarquez1 authored and gauravtiwari committed Mar 13, 2018
1 parent 97e09e3 commit 811796a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit 811796a

Please sign in to comment.