aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/render_test.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2012-05-07 07:35:42 -0700
committerJosé Valim <jose.valim@gmail.com>2012-05-07 07:35:42 -0700
commitfef110d4a8ada2663c52467b9c1b1dd34ddc4bd6 (patch)
tree2dda50fa3790a7ff347cda2ee14b5f3cf9973f84 /actionpack/test/controller/render_test.rb
parentc35df123f040450a314d8cd8a950c09aff39b315 (diff)
parent7d2bbb6ca4d5c3edd576def3f042e6c39549bb57 (diff)
downloadrails-fef110d4a8ada2663c52467b9c1b1dd34ddc4bd6.tar.gz
rails-fef110d4a8ada2663c52467b9c1b1dd34ddc4bd6.tar.bz2
rails-fef110d4a8ada2663c52467b9c1b1dd34ddc4bd6.zip
Merge pull request #5368 from andhapp/remove-max-stale
Minor test improvement
Diffstat (limited to 'actionpack/test/controller/render_test.rb')
-rw-r--r--actionpack/test/controller/render_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb
index 10f62dad65..5e699c0daf 100644
--- a/actionpack/test/controller/render_test.rb
+++ b/actionpack/test/controller/render_test.rb
@@ -102,12 +102,12 @@ class TestController < ActionController::Base
end
def conditional_hello_with_expires_in_with_public_with_more_keys
- expires_in 1.minute, :public => true, 'max-stale' => 5.hours
+ expires_in 1.minute, :public => true, 's-maxage' => 5.hours
render :action => 'hello_world'
end
def conditional_hello_with_expires_in_with_public_with_more_keys_old_syntax
- expires_in 1.minute, :public => true, :private => nil, 'max-stale' => 5.hours
+ expires_in 1.minute, :public => true, :private => nil, 's-maxage' => 5.hours
render :action => 'hello_world'
end
@@ -1478,12 +1478,12 @@ class ExpiresInRenderTest < ActionController::TestCase
def test_expires_in_header_with_additional_headers
get :conditional_hello_with_expires_in_with_public_with_more_keys
- assert_equal "max-age=60, public, max-stale=18000", @response.headers["Cache-Control"]
+ assert_equal "max-age=60, public, s-maxage=18000", @response.headers["Cache-Control"]
end
def test_expires_in_old_syntax
get :conditional_hello_with_expires_in_with_public_with_more_keys_old_syntax
- assert_equal "max-age=60, public, max-stale=18000", @response.headers["Cache-Control"]
+ assert_equal "max-age=60, public, s-maxage=18000", @response.headers["Cache-Control"]
end
def test_expires_now