diff options
author | Jean Boussier <jean.boussier@gmail.com> | 2016-03-05 00:41:10 -0500 |
---|---|---|
committer | Jean Boussier <jean.boussier@gmail.com> | 2016-03-05 00:41:10 -0500 |
commit | 3d6c124dc1e2911b45c23596e9f0e1d2d7ee615f (patch) | |
tree | 8777a4ff661241857d46b51f52ae05a83efa5986 /actionpack/test | |
parent | 225bd148232a970174736ab5448eca42a696670f (diff) | |
download | rails-3d6c124dc1e2911b45c23596e9f0e1d2d7ee615f.tar.gz rails-3d6c124dc1e2911b45c23596e9f0e1d2d7ee615f.tar.bz2 rails-3d6c124dc1e2911b45c23596e9f0e1d2d7ee615f.zip |
Remove http_cache_forever's version parameter
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/render_test.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb index b7f3e121fd..82fc8b0f8a 100644 --- a/actionpack/test/controller/render_test.rb +++ b/actionpack/test/controller/render_test.rb @@ -703,7 +703,7 @@ end class HttpCacheForeverTest < ActionController::TestCase class HttpCacheForeverController < ActionController::Base def cache_me_forever - http_cache_forever(public: params[:public], version: params[:version] || 'v1') do + http_cache_forever(public: params[:public]) do render plain: 'hello' end end @@ -742,13 +742,5 @@ class HttpCacheForeverTest < ActionController::TestCase assert_response :not_modified @request.if_modified_since = @response.headers['Last-Modified'] @request.if_none_match = @response.etag - - get :cache_me_forever, params: {version: 'v2'} - assert_response :success - @request.if_modified_since = @response.headers['Last-Modified'] - @request.if_none_match = @response.etag - - get :cache_me_forever, params: {version: 'v2'} - assert_response :not_modified end end |