Skip to content
This repository
Browse code

Initialize ivars in tests.

  • Loading branch information...
commit 3abd0593a62e2be118b783efe55f63ab3324a4d7 1 parent c648a4c
Emilio Tagua authored September 28, 2010
1  actionpack/test/controller/caching_test.rb
@@ -185,6 +185,7 @@ def forbidden
185 185
 
186 186
   def with_layout
187 187
     @cache_this = MockTime.now.to_f.to_s
  188
+    @title = nil
188 189
     render :text => @cache_this, :layout => true
189 190
   end
190 191
 
1  actionpack/test/controller/render_other_test.rb
@@ -120,6 +120,7 @@ def render_simon_says
120 120
 
121 121
     private
122 122
       def default_render
  123
+        @alternate_default_render ||= nil
123 124
         if @alternate_default_render
124 125
           @alternate_default_render.call
125 126
         else
1  actionpack/test/controller/webservice_test.rb
@@ -24,6 +24,7 @@ def rescue_action(e) raise end
24 24
 
25 25
   def setup
26 26
     @controller = TestController.new
  27
+    @integration_session = nil
27 28
   end
28 29
 
29 30
   def test_check_parameters

0 notes on commit 3abd059

Please sign in to comment.
Something went wrong with that request. Please try again.