aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2010-09-28 17:32:18 -0300
committerEmilio Tagua <miloops@gmail.com>2010-09-28 17:32:18 -0300
commit3abd0593a62e2be118b783efe55f63ab3324a4d7 (patch)
treeb394509e8e71adb6b266b0d69251dcc9b31f9a6e /actionpack/test/controller
parentc648a4cb944bac6900bad084be5c701e32ae1b0d (diff)
downloadrails-3abd0593a62e2be118b783efe55f63ab3324a4d7.tar.gz
rails-3abd0593a62e2be118b783efe55f63ab3324a4d7.tar.bz2
rails-3abd0593a62e2be118b783efe55f63ab3324a4d7.zip
Initialize ivars in tests.
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/caching_test.rb1
-rw-r--r--actionpack/test/controller/render_other_test.rb1
-rw-r--r--actionpack/test/controller/webservice_test.rb1
3 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb
index 8030499235..914ae56032 100644
--- a/actionpack/test/controller/caching_test.rb
+++ b/actionpack/test/controller/caching_test.rb
@@ -185,6 +185,7 @@ class ActionCachingTestController < CachingController
def with_layout
@cache_this = MockTime.now.to_f.to_s
+ @title = nil
render :text => @cache_this, :layout => true
end
diff --git a/actionpack/test/controller/render_other_test.rb b/actionpack/test/controller/render_other_test.rb
index 3117be6e81..eda777e7a7 100644
--- a/actionpack/test/controller/render_other_test.rb
+++ b/actionpack/test/controller/render_other_test.rb
@@ -120,6 +120,7 @@ class RenderOtherTest < ActionController::TestCase
private
def default_render
+ @alternate_default_render ||= nil
if @alternate_default_render
@alternate_default_render.call
else
diff --git a/actionpack/test/controller/webservice_test.rb b/actionpack/test/controller/webservice_test.rb
index 5564775a48..6ba4c6c48d 100644
--- a/actionpack/test/controller/webservice_test.rb
+++ b/actionpack/test/controller/webservice_test.rb
@@ -24,6 +24,7 @@ class WebServiceTest < ActionDispatch::IntegrationTest
def setup
@controller = TestController.new
+ @integration_session = nil
end
def test_check_parameters