diff options
author | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-10-03 15:35:19 -0500 |
---|---|---|
committer | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-10-03 15:35:19 -0500 |
commit | e4d5b69b57c21e334a0b26dbc90a9b6bca044781 (patch) | |
tree | be81c32f3427a2d963da5d98ae95b4e2ebebc6ad /actionpack/test/controller | |
parent | 2f81be178fd000956974d53ad265fffa58b50090 (diff) | |
download | rails-e4d5b69b57c21e334a0b26dbc90a9b6bca044781.tar.gz rails-e4d5b69b57c21e334a0b26dbc90a9b6bca044781.tar.bz2 rails-e4d5b69b57c21e334a0b26dbc90a9b6bca044781.zip |
rename page_cache_extension option to default_static_extension
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/caching_test.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb index 488917e32c..65c18dfb64 100644 --- a/actionpack/test/controller/caching_test.rb +++ b/actionpack/test/controller/caching_test.rb @@ -283,3 +283,18 @@ class CacheHelperOutputBufferTest < ActionController::TestCase end end end + +class DeprecatedPageCacheExtensionTest < ActiveSupport::TestCase + def test_page_cache_extension_binds_default_static_extension + deprecation_behavior = ActiveSupport::Deprecation.behavior + ActiveSupport::Deprecation.behavior = :silence + old_extension = ActionController::Base.default_static_extension + + ActionController::Base.page_cache_extension = '.rss' + + assert_equal '.rss', ActionController::Base.default_static_extension + ensure + ActiveSupport::Deprecation.behavior = deprecation_behavior + ActionController::Base.default_static_extension = old_extension + end +end |