diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-01-29 00:14:26 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-01-29 00:15:19 -0500 |
commit | f16709231de2df863949e8e99a5b0fe22695fd15 (patch) | |
tree | 1900af2c47131c27c6559a6293ca10d0c073dc2a /actionpack/test/controller/caching_test.rb | |
parent | c3c92fb5e572debc62539137ad5fe158bd978b7e (diff) | |
parent | 837e40dcac023319a0bfc38240761d4352b73b99 (diff) | |
download | rails-f16709231de2df863949e8e99a5b0fe22695fd15.tar.gz rails-f16709231de2df863949e8e99a5b0fe22695fd15.tar.bz2 rails-f16709231de2df863949e8e99a5b0fe22695fd15.zip |
Merge pull request #22800 from dgynn/pr_cache_helper_options
Restore ability to pass extra options to cache stores
Diffstat (limited to 'actionpack/test/controller/caching_test.rb')
-rw-r--r-- | actionpack/test/controller/caching_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb index d19b3810c2..74c78dfa8e 100644 --- a/actionpack/test/controller/caching_test.rb +++ b/actionpack/test/controller/caching_test.rb @@ -172,6 +172,9 @@ class FunctionalCachingController < CachingController def fragment_cached_without_digest end + + def fragment_cached_with_options + end end class FunctionalFragmentCachingTest < ActionController::TestCase @@ -215,6 +218,15 @@ CACHED assert_equal "<p>ERB</p>", @store.read("views/nodigest") end + def test_fragment_caching_with_options + get :fragment_cached_with_options + assert_response :success + expected_body = "<body>\n<p>ERB</p>\n</body>\n" + + assert_equal expected_body, @response.body + assert_equal "<p>ERB</p>", @store.read("views/with_options") + end + def test_render_inline_before_fragment_caching get :inline_fragment_cached assert_response :success |