From f7573175de7c584ee9c256fb567311adc2de04b9 Mon Sep 17 00:00:00 2001 From: Andrew White Date: Mon, 18 Oct 2010 09:57:51 +0100 Subject: Reset assert_template instance variables between requests [#5832 state:resolved] --- actionpack/lib/action_controller/test_case.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'actionpack/lib/action_controller') diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index 6061945622..0c26071379 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -40,6 +40,13 @@ module ActionController ActiveSupport::Notifications.unsubscribe("!render_template.action_view") end + def process(*args) + @partials = Hash.new(0) + @templates = Hash.new(0) + @layouts = Hash.new(0) + super + end + # Asserts that the request was rendered with the appropriate template file or partials. # # ==== Examples -- cgit v1.2.3