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