diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-04-25 09:11:41 -0400 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-04-29 12:48:34 +0200 |
commit | d793d30776737e46ead49d90dcba411c3dfd6edf (patch) | |
tree | b743089fce82ddcd9279370593a60ee9c892a534 /actionpack/lib/action_controller/caching | |
parent | 2e9af3638d950ef840e1287f99e323887ec6a4c4 (diff) | |
download | rails-d793d30776737e46ead49d90dcba411c3dfd6edf.tar.gz rails-d793d30776737e46ead49d90dcba411c3dfd6edf.tar.bz2 rails-d793d30776737e46ead49d90dcba411c3dfd6edf.zip |
ActionCachingTestController rescues from all exceptions. Making sure that all the tests check for valid response. [#4468 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/lib/action_controller/caching')
-rw-r--r-- | actionpack/lib/action_controller/caching/actions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/caching/actions.rb b/actionpack/lib/action_controller/caching/actions.rb index 43ddf6435a..546f043c58 100644 --- a/actionpack/lib/action_controller/caching/actions.rb +++ b/actionpack/lib/action_controller/caching/actions.rb @@ -133,7 +133,7 @@ module ActionController #:nodoc: body = controller._save_fragment(cache_path.path, @store_options) end - body = controller.render_to_string(:text => cache, :layout => true) unless @cache_layout + body = controller.render_to_string(:text => body, :layout => true) unless @cache_layout controller.response_body = body controller.content_type = Mime[cache_path.extension || :html] |