aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/caching_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-06-02 13:32:58 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2008-06-02 21:32:50 -0700
commit0bdb7d353b4ac6f5470884360f9a480a16bd709c (patch)
tree53d266015cf696c280b9ba37995c9d1f6bd02358 /actionpack/test/controller/caching_test.rb
parent933697a5fc5f4c56c4fd7fbbd31b8973df9c1054 (diff)
downloadrails-0bdb7d353b4ac6f5470884360f9a480a16bd709c.tar.gz
rails-0bdb7d353b4ac6f5470884360f9a480a16bd709c.tar.bz2
rails-0bdb7d353b4ac6f5470884360f9a480a16bd709c.zip
Work with @output_buffer instead of _erbout
Diffstat (limited to 'actionpack/test/controller/caching_test.rb')
-rw-r--r--actionpack/test/controller/caching_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb
index f9b6b87bc6..d0ee93cf3f 100644
--- a/actionpack/test/controller/caching_test.rb
+++ b/actionpack/test/controller/caching_test.rb
@@ -421,6 +421,8 @@ class FragmentCachingTest < Test::Unit::TestCase
@controller.request = @request
@controller.response = @response
@controller.send(:initialize_current_url)
+ @controller.send(:initialize_template_class, @response)
+ @controller.send(:assign_shortcuts, @request, @response)
end
def test_fragment_cache_key
@@ -510,7 +512,7 @@ class FragmentCachingTest < Test::Unit::TestCase
def test_cache_erb_fragment
@store.write('views/expensive', 'fragment content')
- _erbout = 'generated till now -> '
+ @controller.template.output_buffer = 'generated till now -> '
assert_equal( 'generated till now -> fragment content',
ActionView::TemplateHandlers::ERB.new(@controller).cache_fragment(Proc.new{ }, 'expensive'))