Skip to content

Commit

Permalink
Serve public assets in tests
Browse files Browse the repository at this point in the history
This is rails default - and I actually have no idea
why it works for anyone else. Without serving public
files, I have no assets in tests
  • Loading branch information
coolo committed Dec 13, 2018
1 parent 322e29f commit 333acea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
config.action_controller.perform_caching = false

# Configure public file server for tests with Cache-Control for performance.
config.public_file_server.enabled = false
config.public_file_server.enabled = true
config.public_file_server.headers = {
'Cache-Control' => 'public, max-age=3600'
}
Expand Down

0 comments on commit 333acea

Please sign in to comment.