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:
parent
c648a4cb94
commit
3abd0593a6
3 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -24,6 +24,7 @@ class WebServiceTest < ActionDispatch::IntegrationTest
|
|||
|
||||
def setup
|
||||
@controller = TestController.new
|
||||
@integration_session = nil
|
||||
end
|
||||
|
||||
def test_check_parameters
|
||||
|
|
Loading…
Reference in a new issue