aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/test_case.rb
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2009-08-07 03:18:45 -0300
committerYehuda Katz <wycats@gmail.com>2009-08-07 03:18:45 -0300
commit0612fd0f09977dece11a0325a0d7ee07c5cab35c (patch)
treed225dd3b608eca95a388f61bda4225de75654a79 /actionpack/lib/action_view/test_case.rb
parentb3e199f6981b2fbf062fe668ff93b7dc56e98a38 (diff)
downloadrails-0612fd0f09977dece11a0325a0d7ee07c5cab35c.tar.gz
rails-0612fd0f09977dece11a0325a0d7ee07c5cab35c.tar.bz2
rails-0612fd0f09977dece11a0325a0d7ee07c5cab35c.zip
Replace _render_template_with_layout with _render_template since the layout is optional
Diffstat (limited to 'actionpack/lib/action_view/test_case.rb')
-rw-r--r--actionpack/lib/action_view/test_case.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/test_case.rb b/actionpack/lib/action_view/test_case.rb
index 3f3951509a..71a4a88afe 100644
--- a/actionpack/lib/action_view/test_case.rb
+++ b/actionpack/lib/action_view/test_case.rb
@@ -9,8 +9,8 @@ module ActionView
end
attr_internal :rendered
- alias_method :_render_template_without_template_tracking, :_render_template
- def _render_template(template, local_assigns = {})
+ alias_method :_render_template_without_template_tracking, :_render_single_template
+ def _render_single_template(template, local_assigns = {})
if template.respond_to?(:identifier) && template.present?
@_rendered[:partials][template] += 1 if template.partial?
@_rendered[:template] ||= []