提交 3b0f917b 编写于 作者: J José Valim

Test explicit skip.

上级 07fde1a3
......@@ -8,11 +8,15 @@ class BasicController < ActionController::Base
)]
layout "application"
stream :only => :hello_world
stream :only => [:hello_world, :skip]
def hello_world
end
def skip
render :action => "hello_world", :stream => false
end
def explicit
render :action => "hello_world", :stream => true
end
......@@ -52,6 +56,11 @@ class StreamingTest < Rack::TestCase
assert_streaming!
end
test "skip rendering with streaming at render level" do
get "/render_streaming/basic/skip"
assert_body "Hello world, I'm here!"
end
def assert_streaming!(cache="no-cache")
assert_status 200
assert_equal nil, headers["Content-Length"]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册