提交 72c7aec7 编写于 作者: W wycats

Eliminate uninitialized instance variable warning

上级 0a587eec
......@@ -8,7 +8,7 @@ class TestController < ActionController::Base
class FiberedTest < ActiveSupport::TestCase
def setup
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)
@controller_view = TestController.new.view_context
end
......@@ -106,4 +106,4 @@ def test_render_with_nested_streaming_multiple_yields_provide_and_content_for
buffered_render(:template => "test/nested_streaming", :layout => "layouts/streaming")
end
end if defined?(Fiber)
\ No newline at end of file
end if defined?(Fiber)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册