aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/action_pack_assertions_test.rb
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/test/controller/action_pack_assertions_test.rb
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/test/controller/action_pack_assertions_test.rb')
-rw-r--r--actionpack/test/controller/action_pack_assertions_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/test/controller/action_pack_assertions_test.rb b/actionpack/test/controller/action_pack_assertions_test.rb
index 5a8b763717..5a210aa9ec 100644
--- a/actionpack/test/controller/action_pack_assertions_test.rb
+++ b/actionpack/test/controller/action_pack_assertions_test.rb
@@ -465,6 +465,14 @@ class AssertTemplateTest < ActionController::TestCase
assert_template :hello_planet
end
end
+
+ def test_assert_template_reset_between_requests
+ get :hello_world
+ assert_template 'test/hello_world'
+
+ get :nothing
+ assert_template nil
+ end
end
class ActionPackHeaderTest < ActionController::TestCase