aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/middleware
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2015-11-04 22:31:16 +0100
committerKasper Timm Hansen <kaspth@gmail.com>2015-11-04 22:40:58 +0100
commitfa2c96b3f7332367d509e32127f04c4c2d7632fe (patch)
treef1c1680d30ae5d9aa1fc1282624bfcef52891670 /railties/test/application/middleware
parenta80fb6f9b3b553b59a486d7aa4673cc47397fab5 (diff)
downloadrails-fa2c96b3f7332367d509e32127f04c4c2d7632fe.tar.gz
rails-fa2c96b3f7332367d509e32127f04c4c2d7632fe.tar.bz2
rails-fa2c96b3f7332367d509e32127f04c4c2d7632fe.zip
Replace `serve_static_files` in tests with `public_file_server.enabled`.
Forgot to do it in 748b2f9, when deprecating `serve_static_files`.
Diffstat (limited to 'railties/test/application/middleware')
-rw-r--r--railties/test/application/middleware/sendfile_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/application/middleware/sendfile_test.rb b/railties/test/application/middleware/sendfile_test.rb
index dc96480d6d..be86f1a3b8 100644
--- a/railties/test/application/middleware/sendfile_test.rb
+++ b/railties/test/application/middleware/sendfile_test.rb
@@ -61,7 +61,7 @@ module ApplicationTests
test "files handled by ActionDispatch::Static are handled by Rack::Sendfile" do
make_basic_app do |app|
app.config.action_dispatch.x_sendfile_header = 'X-Sendfile'
- app.config.serve_static_files = true
+ app.config.public_file_server.enabled = true
app.paths["public"] = File.join(rails_root, "public")
end