Initialize ivars in tests.
This commit is contained in:
parent
c648a4cb94
commit
3abd0593a6
@ -185,6 +185,7 @@ def forbidden
|
|||||||
|
|
||||||
def with_layout
|
def with_layout
|
||||||
@cache_this = MockTime.now.to_f.to_s
|
@cache_this = MockTime.now.to_f.to_s
|
||||||
|
@title = nil
|
||||||
render :text => @cache_this, :layout => true
|
render :text => @cache_this, :layout => true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -120,6 +120,7 @@ def render_simon_says
|
|||||||
|
|
||||||
private
|
private
|
||||||
def default_render
|
def default_render
|
||||||
|
@alternate_default_render ||= nil
|
||||||
if @alternate_default_render
|
if @alternate_default_render
|
||||||
@alternate_default_render.call
|
@alternate_default_render.call
|
||||||
else
|
else
|
||||||
|
@ -24,6 +24,7 @@ def rescue_action(e) raise end
|
|||||||
|
|
||||||
def setup
|
def setup
|
||||||
@controller = TestController.new
|
@controller = TestController.new
|
||||||
|
@integration_session = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_check_parameters
|
def test_check_parameters
|
||||||
|
Loading…
Reference in New Issue
Block a user