mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Eliminate uninitialized instance variable warning
This commit is contained in:
parent
0a587eecc9
commit
72c7aec792
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ end
|
||||||
class FiberedTest < ActiveSupport::TestCase
|
class FiberedTest < ActiveSupport::TestCase
|
||||||
def setup
|
def setup
|
||||||
view_paths = ActionController::Base.view_paths
|
view_paths = ActionController::Base.view_paths
|
||||||
@assigns = { :secret => 'in the sauce' }
|
@assigns = { :secret => 'in the sauce', :name => nil }
|
||||||
@view = ActionView::Base.new(view_paths, @assigns)
|
@view = ActionView::Base.new(view_paths, @assigns)
|
||||||
@controller_view = TestController.new.view_context
|
@controller_view = TestController.new.view_context
|
||||||
end
|
end
|
||||||
|
@ -106,4 +106,4 @@ class FiberedTest < ActiveSupport::TestCase
|
||||||
buffered_render(:template => "test/nested_streaming", :layout => "layouts/streaming")
|
buffered_render(:template => "test/nested_streaming", :layout => "layouts/streaming")
|
||||||
end
|
end
|
||||||
|
|
||||||
end if defined?(Fiber)
|
end if defined?(Fiber)
|
||||||
|
|
Loading…
Reference in a new issue