diff options
author | José Valim <jose.valim@gmail.com> | 2011-04-18 14:27:30 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-04-18 14:27:49 +0200 |
commit | 3b0f917b1dfabce6a6b338e4a7cb02995c055596 (patch) | |
tree | 9c13bab2f01e41fa535062ff8371a6ce490eaa69 /actionpack/test/controller | |
parent | 07fde1a3d36d0622d5fa9c040bfca70db675926a (diff) | |
download | rails-3b0f917b1dfabce6a6b338e4a7cb02995c055596.tar.gz rails-3b0f917b1dfabce6a6b338e4a7cb02995c055596.tar.bz2 rails-3b0f917b1dfabce6a6b338e4a7cb02995c055596.zip |
Test explicit skip.
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/new_base/render_streaming_test.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/actionpack/test/controller/new_base/render_streaming_test.rb b/actionpack/test/controller/new_base/render_streaming_test.rb index dbd6c66d1f..ffc4b331ec 100644 --- a/actionpack/test/controller/new_base/render_streaming_test.rb +++ b/actionpack/test/controller/new_base/render_streaming_test.rb @@ -8,11 +8,15 @@ module RenderStreaming )] 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 @@ module RenderStreaming 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"] |