test/dummy/config/environments/test.rb in bento_search-1.7.0 vs test/dummy/config/environments/test.rb in bento_search-2.0.0.rc1
- old
+ new
@@ -6,15 +6,20 @@
# your test database is "scratch space" for the test suite and is wiped
# and recreated between test runs. Don't rely on the data there!
config.cache_classes = true
# Configure static asset server for tests with Cache-Control for performance
- config.serve_static_files = true
- config.static_cache_control = "public, max-age=3600"
+ if Rails::VERSION::MAJOR < 5
+ config.serve_static_files = true
+ config.static_cache_control = "public, max-age=3600"
+ else
+ config.public_file_server.enabled = true
+ config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
+ end
config.eager_load = false
-
+
# Show full error reports and disable caching
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
# Raise exceptions instead of rendering exception templates
@@ -30,6 +35,8 @@
# Print deprecation notices to the stderr
config.active_support.deprecation = :stderr
config.active_support.test_order = :random
+
+ config.eager_load = false
end