aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-04-18 14:27:30 +0200
committerJosé Valim <jose.valim@gmail.com>2011-04-18 14:27:49 +0200
commit3b0f917b1dfabce6a6b338e4a7cb02995c055596 (patch)
tree9c13bab2f01e41fa535062ff8371a6ce490eaa69 /actionpack/test/controller
parent07fde1a3d36d0622d5fa9c040bfca70db675926a (diff)
downloadrails-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.rb11
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"]