diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-01-10 03:17:20 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-01-10 03:17:20 +0000 |
commit | a8eb90fcee1efdc491c9eb030827b46929ea979c (patch) | |
tree | aad46c0c0e483ad77a129777f1d4a641c1d334c0 /actionpack/test | |
parent | 59f222dbf7c05e3d1f9e71831bc79e2a5ed4a5b5 (diff) | |
download | rails-a8eb90fcee1efdc491c9eb030827b46929ea979c.tar.gz rails-a8eb90fcee1efdc491c9eb030827b46929ea979c.tar.bz2 rails-a8eb90fcee1efdc491c9eb030827b46929ea979c.zip |
Move fragment caching from special helper methods to TemplateHandler. Closes #10754 [Josh Peek]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8619 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/caching_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb index 12397ee8c0..9d4dc4d01c 100644 --- a/actionpack/test/controller/caching_test.rb +++ b/actionpack/test/controller/caching_test.rb @@ -445,7 +445,7 @@ class FragmentCachingTest < Test::Unit::TestCase _erbout = 'generated till now -> ' assert_equal( 'generated till now -> fragment content', - @controller.cache_erb_fragment(Proc.new{ }, 'expensive')) + ActionView::TemplateHandlers::ERB.new(@controller).cache_fragment(Proc.new{ }, 'expensive')) end def test_cache_rxml_fragment @@ -454,7 +454,7 @@ class FragmentCachingTest < Test::Unit::TestCase class << xml; def target!; to_s; end; end assert_equal( 'generated till now -> fragment content', - @controller.cache_rxml_fragment(Proc.new{ }, 'expensive')) + ActionView::TemplateHandlers::Builder.new(@controller).cache_fragment(Proc.new{ }, 'expensive')) end def test_cache_rjs_fragment @@ -462,7 +462,7 @@ class FragmentCachingTest < Test::Unit::TestCase page = 'generated till now -> ' assert_equal( 'generated till now -> fragment content', - @controller.cache_rjs_fragment(Proc.new{ }, 'expensive')) + ActionView::TemplateHandlers::RJS.new(@controller).cache_fragment(Proc.new{ }, 'expensive')) end def test_cache_rjs_fragment_debug_mode_does_not_interfere @@ -472,7 +472,7 @@ class FragmentCachingTest < Test::Unit::TestCase begin debug_mode, ActionView::Base.debug_rjs = ActionView::Base.debug_rjs, true assert_equal( 'generated till now -> fragment content', - @controller.cache_rjs_fragment(Proc.new{ }, 'expensive')) + ActionView::TemplateHandlers::RJS.new(@controller).cache_fragment(Proc.new{ }, 'expensive')) assert ActionView::Base.debug_rjs ensure ActionView::Base.debug_rjs = debug_mode |