diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-06-19 21:44:23 -0400 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-10-10 01:35:59 -0300 |
commit | a3ff9db69c79e559122c55791dda1e89e6c8d8f4 (patch) | |
tree | d37b546a26f25796962f747612d0d4e86ad4d453 /actionpack/test/dispatch/static_test.rb | |
parent | 1b975e6a696655f476b10a4567b537cc92077563 (diff) | |
download | rails-a3ff9db69c79e559122c55791dda1e89e6c8d8f4.tar.gz rails-a3ff9db69c79e559122c55791dda1e89e6c8d8f4.tar.bz2 rails-a3ff9db69c79e559122c55791dda1e89e6c8d8f4.zip |
Remove deprecated `cache_control` argument from `ActionDispatch::Static#initialize`
Diffstat (limited to 'actionpack/test/dispatch/static_test.rb')
-rw-r--r-- | actionpack/test/dispatch/static_test.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/actionpack/test/dispatch/static_test.rb b/actionpack/test/dispatch/static_test.rb index f72823a80e..aca70e180c 100644 --- a/actionpack/test/dispatch/static_test.rb +++ b/actionpack/test/dispatch/static_test.rb @@ -44,16 +44,6 @@ module StaticTests assert_equal "Hello, World!", get("/doorkeeper%00").body end - def test_sets_cache_control - app = assert_deprecated do - ActionDispatch::Static.new(DummyApp, @root, "public, max-age=60") - end - response = Rack::MockRequest.new(app).request("GET", "/index.html") - - assert_html "/index.html", response - assert_equal "public, max-age=60", response.headers["Cache-Control"] - end - def test_serves_static_index_at_root assert_html "/index.html", get("/index.html") assert_html "/index.html", get("/index") |