aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2010-10-18 09:57:51 +0100
committerAndrew White <andyw@pixeltrix.co.uk>2010-10-18 09:57:51 +0100
commitf7573175de7c584ee9c256fb567311adc2de04b9 (patch)
treea701f77d928d8d2a19566a6af19efb4bf5dc69b5 /actionpack/lib/action_controller
parent7b2ec381ca5ce88fe62a0a42183b3a5df63ee68b (diff)
downloadrails-f7573175de7c584ee9c256fb567311adc2de04b9.tar.gz
rails-f7573175de7c584ee9c256fb567311adc2de04b9.tar.bz2
rails-f7573175de7c584ee9c256fb567311adc2de04b9.zip
Reset assert_template instance variables between requests [#5832 state:resolved]
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/test_case.rb7
1 files changed, 7 insertions, 0 deletions
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