1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Initialize ivars in tests.

This commit is contained in:
Emilio Tagua 2010-09-28 17:32:18 -03:00
parent c648a4cb94
commit 3abd0593a6
3 changed files with 3 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

@ -24,6 +24,7 @@ class WebServiceTest < ActionDispatch::IntegrationTest
def setup
@controller = TestController.new
@integration_session = nil
end
def test_check_parameters